tb copy

Manages copy pipes. Global options apply to this command. See Global options.

The following subcommands are available:

SubcommandDescription
lsLists all the copy pipes.
run [OPTIONS] PIPE_NAME_OR_IDRuns a Copy Pipe job.
pause PIPE_NAME_OR_IDPauses a copy job.
resume PIPE_NAME_OR_IDResumes a copy job.

tb copy run

Runs a copy job.

OptionDescription
--waitWaits for the copy job to finish.
--mode [append|replace]Defines the copy strategy.
--param TEXTKey-value pair to pass as a parameter to the Copy Pipe. For example: tb copy run <my_copy_pipe> --param foo=bar
--on-demand-computeRuns the copy job on isolated on-demand compute instead of your Workspace compute. Manual runs always need this flag, even when the datafile sets ON_DEMAND_COMPUTE true. If the local datafile doesn't set ON_DEMAND_COMPUTE true, the CLI asks for confirmation before running. See on-demand compute for copy jobs.
--yesSkips confirmation prompts, such as the on-demand compute confirmation. Useful in CI.

tb copy run triggers a manual run. It doesn't read ON_DEMAND_COMPUTE from the datafile, which only applies to scheduled executions.

Environment support

EnvironmentSupportedDescription
--local✓ Yes (default)Manages copy pipes locally.
--cloud✓ YesManages copy pipes in Tinybird Cloud.
--branch=BRANCH_NAME✓ YesManages copy pipes in a branch.
Updated