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

ti fs diff-layer



Lists changes in one layer, optionally up to a sequence number.

Syntax

ti fs diff-layer --layer-id <string> [--file-system-id <string>] [--fs-token <string>] [--help] [--max-seq <int64>] [--version]

Options

  • --layer-id <string>: The ID of the layer. [required]
  • --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.
  • --max-seq <int64>: The highest layer sequence to include; 0 includes all layers.
  • --version: Display version information.

For options shared by all commands, see Global options.

Examples

  • Show all layer changes:

    # Return the complete ordered change set for the selected layer. ti fs diff-layer --file-system-id <file-system-id> --layer-id "<layer-id>"
  • Show an earlier layer view:

    # Limit the diff to changes at or before a sequence number. ti fs diff-layer --file-system-id <file-system-id> --layer-id "<layer-id>" --max-seq 100

Was this page helpful?