📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

TiDB Cloud Filesystem CLI Command Reference



Use ti fs to provision TiDB Cloud Filesystem resources and access their data from commands or local mounts.

In command syntax, square brackets ([]) enclose optional items. Parentheses group required choices, and a vertical bar (|) separates alternatives. For example, (--ttl <duration> | --no-expiration) means that you must specify exactly one of the two options.

Resource and token commands

CommandDescription
create-file-systemCreates a Filesystem and its initial owner token.
list-file-systemsLists Filesystems in the effective region.
describe-file-systemDescribes one Filesystem by ID.
check-file-systemChecks Filesystem selection, routing, credentials, and data-plane access.
delete-file-systemPermanently deletes a Filesystem.
import-file-system-tokenImports and selects an existing Filesystem token locally.
generate-file-system-tokenGenerates an additional owner token.
generate-file-system-scoped-tokenGenerates a token limited by path, operation, and lifetime.
list-file-system-tokensLists non-secret token metadata.
enable-file-system-tokenRe-enables a disabled token.
disable-file-system-tokenTemporarily disables a token.
delete-file-system-tokenPermanently revokes a token.
refresh-file-system-tokenRotates a token and returns its replacement once.

Token-management authorization

When an owner token authorizes token management, it can list tokens, create scoped tokens, and revoke either owner or scoped tokens. It can enable or disable scoped tokens only. TiDB Cloud API credentials can enable, disable, or revoke either token kind.

AI provider configuration commands

These commands configure optional providers for extracting content from media files and generating embeddings. Ordinary Filesystem resource and file operations do not require AI provider configuration.

CommandDescription
describe-file-system-extract-configurationDescribes the media extraction provider configuration.
update-file-system-extract-configurationUpdates the provider used to extract media content.
describe-file-system-embedding-configurationDescribes the embedding provider configuration.
update-file-system-embedding-configurationUpdates the provider used to generate embeddings.

Data and namespace commands

CommandDescription
copy-fileCopies files between local storage and a Filesystem, or within a Filesystem.
read-fileReads a remote file or byte range.
list-filesLists entries under a remote path.
describe-fileDescribes a remote file or directory.
move-fileMoves or renames a remote path.
delete-fileDeletes a remote file or directory.
create-directoryCreates a remote directory.
chmod-fileChanges POSIX-style mode metadata.
create-symlinkCreates a symbolic link.
create-hardlinkCreates a hard link.
search-file-contentSearches extracted file content and descriptions.
find-filesFinds files by name, tag, date, size, or type.

Layer and portability commands

CommandDescription
create-layerCreates an isolated writable layer.
list-layersLists layers in a Filesystem.
fork-layerForks a child layer from a parent tip or checkpoint.
list-layer-chainLists the pinned ancestry of a layer.
describe-layerDescribes a layer by ID.
diff-layerLists changes recorded in a layer.
create-layer-checkpointCreates a durable checkpoint in a layer.
delete-layerLogically abandons a layer.
rollback-layerRolls a layer back without committing its changes.
commit-layerApplies a layer's changes to the base Filesystem.
pack-file-systemArchives selected local overlay state to the Filesystem.
unpack-file-systemRestores local overlay state from an archive.

Layer references

A layer reference can be a layer ID, a unique layer name, or a tag reference in the form tag:<key>=<value>, for example tag:run=123. Because names and tag references can be ambiguous, use layer IDs in automation.

Mount profiles and local overlays

A local overlay stores files that a mount profile keeps on the local machine instead of in the remote namespace. Mount profiles define which paths use that overlay:

Mount profileBehavior
coding-agentKeeps version-control metadata, dependency directories, caches, build output, and common temporary paths in the local overlay. It does not select automatic pack paths.
portableUses the same local-path rules as coding-agent and packs or unpacks the complete overlay by default, so you can move it between machines or sandbox sessions.
noneDisables local-overlay path routing and automatic pack or unpack behavior.

Mount commands

CommandDescription
mount-file-systemMounts a Filesystem at a local path.
drain-file-systemFlushes pending writes from a live FUSE mount.
unmount-file-systemFlushes and unmounts a Filesystem.

Command aliases

The following ti fs commands have Unix-style aliases. For example, ti fs cp is equivalent to ti fs copy-file. Commands not listed in the table, including pack-file-system and unpack-file-system, do not have aliases.

AliasCanonical command
cpcopy-file
catread-file
lslist-files
statdescribe-file
mvmove-file
rmdelete-file
mkdircreate-directory
chmodchmod-file
symlinkcreate-symlink
hardlinkcreate-hardlink
grepsearch-file-content
findfind-files
mountmount-file-system
draindrain-file-system
umountunmount-file-system

Aliases use the same options, authentication, output, query, and error behavior as canonical commands.

See also

Was this page helpful?