Skip to content
View as Markdown

Data Commands ​

Commands for managing application data across workspaces.

data ​

Manage application data across workspaces.

Usage

tailor data <command>

See Global Options for options available to all commands.

Commands

CommandDescription
data cloneClone the data of an application (TailorDB namespaces registered in its subgraph) from one workspace to another.
data operationInspect asynchronous application data operations.

data clone ​

Clone the data of an application (TailorDB namespaces registered in its subgraph) from one workspace to another.

Usage

tailor data clone [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--yes-ySkip confirmation promptsNofalse-
--profile <PROFILE>-pWorkspace profileNo-TAILOR_PLATFORM_PROFILE
--from <FROM>-Workspace ID to copy data fromYes--
--to <TO>-Workspace ID to copy data toYes--
--name <NAME>-nApplication name, the same in the source and the target workspace (default: the name in the config file)No--
--config <CONFIG>-cPath to Tailor config fileNo"tailor.config.ts"TAILOR_CONFIG_PATH
--copy-files-Also copy TailorDB file contentNofalse-
--copy-idp-users-Also copy IdP users, including their passwordsNofalse-
--no-wait-Start the clone and exit without waiting for it to finishNofalse-

See Global Options for options available to all commands.

Notes

The platform rejects the clone with a failed precondition unless all of the following hold:

  • The source and target workspaces are in the same region.
  • The target workspace has the same namespaces as the source.
  • The TailorDB schema of the target matches the source, so deploy the same version to the target first.
  • The target is empty for every namespace and copy type in scope (TailorDB records, plus files and IdP users when --copy-files / --copy-idp-users are given).

The command waits until the clone finishes. Pressing Ctrl+C or passing --no-wait does not stop the clone, which keeps running on the platform. Use tailor data operation get --wait with the operation ID printed at the start to keep waiting, or without --wait to check the status once.

With --json, the result carries status: completed once the clone has finished, or started with --no-wait.

data operation ​

Inspect asynchronous application data operations.

Usage

tailor data operation <command>

See Global Options for options available to all commands.

Commands

CommandDescription
data operation getShow the status of a data clone, or wait for it to finish.

data operation get ​

Show the status of a data clone, or wait for it to finish.

Usage

tailor data operation get [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--profile <PROFILE>-pWorkspace profileNo-TAILOR_PLATFORM_PROFILE
--from <FROM>-Workspace ID to copy data fromYes--
--to <TO>-Workspace ID to copy data toYes--
--operation-id <OPERATION_ID>-Operation ID printed when the clone startedYes--
--wait-Wait until the clone completes or failsNofalse-

See Global Options for options available to all commands.

Notes

Without --wait, the command prints the current status once and exits. With --wait, it waits until the clone completes or fails, and exits with an error if it fails. Pressing Ctrl+C stops waiting; the clone keeps running on the platform.