Skip to content

deploy & export

deploy and export act on a config artifact type, identified by its stable type slug.

Terminal window
tcli deploy <type> [flags...]
tcli export <type> [flags...]
Argument Description
<type> The stable type slug sub-command (e.g. preferences), not the friendly display name. Available types come from your project manifest.
[flags...] Flags for any parameters the type’s script declares (see Script params).

tcli registers a sub-command for every deployable and exportable config artifact. To get a list of the available types, run tcli deploy --help or tcli export --help.

If the manifest entry’s exportScript or deployScript declares params, supply their values as flags after the type’s sub-command:

Terminal window
tcli export workflows --template "TCM Release Process"

Use -h or --help to list the available flags:

Terminal window
tcli deploy workflows --help

In the TUI, a pre-run screen prompts for each parameter before the command runs. Types without parameters run immediately.

Both commands require TC_ROOT, TC_DATA, and UPG to be resolvable. In headless mode they must come from .tcli.env.yaml or environment variables. tcli will not prompt. See Environment resolution.

tcli mirrors the underlying process’s exit code.

Terminal window
tcli deploy stylesheets
tcli export preferences --category General --scope SITE
tcli export workflows --template "TCM Release Process"
  • Config artifact types — the full matrix, including what each type’s script expects (where to place files, and which Teamcenter utility runs).