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

ti fs mount-file-system



Mounts a Filesystem through automatic, FUSE, or WebDAV mode. The command alias is ti fs mount.

The command starts the mount runtime in the background, waits for the mount to become ready, and then prints the TiDB Cloud CLI mount result. It suppresses companion startup messages, including Drive9-specific unmount guidance. If startup fails, the error includes the companion log path for diagnosis. Use ti fs unmount-file-system to end the mount.

Syntax

ti fs mount-file-system --mount-path <string> [--cache-dir <string>] [--checkpoint-id <string>] [--driver <string>] [--dry-run] [--file-system-id <string>] [--fs-token <string>] [--help] [--layer-ref <string>] [--local-root <string>] [--mount-profile <string>] [--no-auto-unpack] [--pack-path <string>] [--read-cache-max-file-mb <int64>] [--read-cache-size-mb <int64>] [--read-cache-ttl <duration>] [--read-only] [--ready-timeout <duration>] [--remote-path <string>] [--unpack-archive-path <string>] [--version] [--write-back-cache]

Options

  • --mount-path <string>: Local mount path. [required]
  • --cache-dir <string>: Local FUSE cache directory. If omitted, uses ~/.ti/cache/mounts/<mount-hash>.
  • --checkpoint-id <string>: Mount this checkpoint of --layer-ref read-only. Requires FUSE.
  • --driver <string>: Mount driver: auto, fuse, or webdav. [default: auto]
  • --dry-run: Validate the request without applying changes.
  • --file-system-id <string>: Select the file system. You can also set TI_FS_FILE_SYSTEM_ID.
  • --fs-token <string>: Set the file system user token. If omitted, uses TI_FS_TOKEN.
  • --help: Display help information.
  • --layer-ref <string>: Mount through a writable layer ID, unique name, or supported tag reference. Requires FUSE.
  • --local-root <string>: Local overlay root. If omitted, uses ~/.ti/local/fs/<mount-hash>.
  • --mount-profile <string>: Mount profile: coding-agent, portable, or none. If omitted, uses none.
  • --no-auto-unpack: Skip default auto-unpack for portable mount profile before mounting.
  • --pack-path <string>: Local overlay path included by automatic or manual pack. Repeatable.
  • --read-cache-max-file-mb <int64>: Maximum file size admitted to the FUSE read cache in MiB. 0 uses the default. [default: 4]
  • --read-cache-size-mb <int64>: FUSE read cache size in MiB. 0 uses the default. [default: 128]
  • --read-cache-ttl <duration>: FUSE read cache time to live. [default: 30s]
  • --read-only: Read-only mount mode.
  • --ready-timeout <duration>: Time to wait for a background mount to become ready. [default: 30s]
  • --remote-path <string>: The TiDB Cloud file system root path to mount. [default: /]
  • --unpack-archive-path <string>: Restore the pack archive before mounting.
  • --version: Display version information.
  • --write-back-cache: Persist FUSE writes locally before writing them to the file system on flush. Unavailable for checkpoint mounts, which are always read-only. [default: true]

For options shared by all commands, see Global options.

Examples

  • Mount a Filesystem with the default driver:

    # Let the CLI select the default driver for the current platform. ti fs mount-file-system --file-system-id <file-system-id> --mount-path /path/to/workspace
  • Create a read-only FUSE mount:

    # Expose the remote namespace through FUSE without permitting writes. ti fs mount-file-system --file-system-id <file-system-id> --mount-path /path/to/workspace --driver fuse --read-only
  • Use WebDAV on macOS without macFUSE:

    # Select WebDAV explicitly when a FUSE runtime is unavailable. ti fs mount-file-system --file-system-id <file-system-id> --mount-path /path/to/workspace --driver webdav
  • Tune the FUSE read cache:

    # Increase cache capacity for repeated reads of medium-sized files. ti fs mount-file-system --file-system-id <file-system-id> --mount-path /path/to/workspace --driver fuse --read-cache-size-mb 256 --read-cache-max-file-mb 16
  • Mount a writable child layer:

    # Expose only the selected copy-on-write timeline at the local path. ti fs mount-file-system --file-system-id <file-system-id> --mount-path /path/to/experiment --remote-path /workspace --driver fuse --layer-ref experiment
  • Compare an immutable historical checkpoint:

    # A checkpoint mount is always read-only. ti fs mount-file-system --file-system-id <file-system-id> --mount-path /path/to/checkpoint --remote-path /workspace --driver fuse --layer-ref experiment --checkpoint-id v5

Was this page helpful?