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

ti fs fork-layer



Creates a writable child layer from the current state of a parent layer or from one of its checkpoints. Changes to the child layer do not modify the parent layer.

Syntax

ti fs fork-layer --parent-layer-ref <string> [--actor-id <string>] [--checkpoint-id <string>] [--dry-run] [--file-system-id <string>] [--fs-token <string>] [--help] [--layer-id <string>] [--layer-name <string>] [--version]

Options

  • --parent-layer-ref <string>: Parent layer ID, unique name, or tag reference. [required]
  • --actor-id <string>: Actor ID identifying the child owner.
  • --checkpoint-id <string>: Pin the child to this checkpoint of the parent. If omitted, pins the serialized parent tip.
  • --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 Filesystem token. If omitted, the command uses the TI_FS_TOKEN environment variable. If neither is provided, the command uses the local token stored for the selected Filesystem.
  • --help: Display help information.
  • --layer-id <string>: Stable child layer ID. If omitted, the service generates one.
  • --layer-name <string>: Human-readable child layer name.
  • --version: Display version information.

For options shared by all commands, see Global options.

Examples

  • Fork from the parent tip:

    # Start an independent writable timeline at the parent's current serialized tip. ti fs fork-layer --file-system-id <file-system-id> --parent-layer-ref research-base --layer-name experiment-a --actor-id agent-a
  • Fork from a stable checkpoint:

    # Continue from an earlier review boundary without changing the original timeline. ti fs fork-layer --file-system-id <file-system-id> --parent-layer-ref research-base --checkpoint-id seed --layer-name experiment-b --actor-id agent-b

Was this page helpful?