Skip to content

Setup Commands

Commands for setting up project infrastructure.

setup

Generate CI deploy workflows for your project. (beta)

Usage

tailor-sdk setup <command>

See Global Options for options available to all commands.

Commands

CommandDescription
setup branchGenerate a branch-target deploy workflow (push to branch triggers deploy).
setup tagGenerate a tag-target deploy workflow (tag push triggers deploy).
setup previewGenerate a preview workflow (PR open/sync triggers deploy to a per-PR workspace).
setup actionGenerate a per-app composite action for use with setup coordinate (monorepo multi-app deploys).
setup coordinateGenerate a coordinator workflow that orchestrates multiple --action-generated composite actions.
setup checkAudit generated workflows for drift against the current config/repo (read-only).
setup deleteDelete managed workflow/action file(s) and their .github/tailor-sdk.lock entries.

setup action

Generate a per-app composite action for use with setup coordinate (monorepo multi-app deploys).

Usage

tailor-sdk setup action [options]

Options

OptionAliasDescriptionRequiredDefault
--name <NAME>-nName (defaults to the config 'name')No-
--dir <DIR>-dApp directoryNo"."
--environment <ENVIRONMENT>-GitHub Environment (defaults to the workspace name)No-
--force-Discard hand edits and regenerateNofalse

See Global Options for options available to all commands.

setup branch

Generate a branch-target deploy workflow (push to branch triggers deploy).

Usage

tailor-sdk setup branch [options]

Options

OptionAliasDescriptionRequiredDefault
--name <NAME>-nName (defaults to the config 'name')No-
--branch <BRANCH>-Deploy trigger branch (defaults to the detected default branch)No-
--environment <ENVIRONMENT>-GitHub Environment for the plan/deploy jobs (defaults to the workspace name)No-
--erd-preview-Add PR ERD viewer artifacts with current/diff previews for TailorDB namespacesNofalse
--dir <DIR>-dApp directory (for monorepo setups)No"."
--force-Discard hand edits / take over unmanaged files and regenerateNofalse

See Global Options for options available to all commands.

setup check

Audit generated workflows for drift against the current config/repo (read-only).

Usage

tailor-sdk setup check [options]

Options

OptionAliasDescriptionRequiredDefault
--ci-Run in CI mode: skip checks that are handled by the runtime (e.g. TAILOR_PLATFORM_WORKSPACE_ID).Nofalse

See Global Options for options available to all commands.

setup coordinate

Generate a coordinator workflow that orchestrates multiple --action-generated composite actions.

Usage

tailor-sdk setup coordinate [options]

Options

OptionAliasDescriptionRequiredDefault
--name <NAME>-nCoordinator name (used in the generated workflow file name and job names)Yes-
--action <ACTION>-Composite action to include (can be specified multiple times). tailor- prefix optional.Yes-
--branch <BRANCH>-Branch target: deploy trigger branch (defaults to the detected default branch)No-
--tag-Generate a tag target coordinatorNofalse
--environment <ENVIRONMENT>-GitHub Environment for the plan/deploy jobsNo-
--force-Discard hand edits and regenerateNofalse

See Global Options for options available to all commands.

setup delete

Delete managed workflow/action file(s) and their .github/tailor-sdk.lock entries.

Usage

tailor-sdk setup delete [options] <files>

Arguments

ArgumentDescriptionRequired
filesWorkflow/action file(s) to delete, as generated under .github/workflows or .github/actionsYes

Options

OptionAliasDescriptionRequiredDefault
--yes-ySkip confirmation promptsNofalse

See Global Options for options available to all commands.

setup preview

Generate a preview workflow (PR open/sync triggers deploy to a per-PR workspace).

Usage

tailor-sdk setup preview [options]

Options

OptionAliasDescriptionRequiredDefault
--name <NAME>-nName (defaults to the config 'name')No-
--branch <BRANCH>-Branch to filter PRs by (defaults to the detected default branch)No-
--region <REGION>-Workspace region for preview workspace creation (e.g. us-west). Required.Yes-
--require-preview-label-Deploy preview only for PRs labeled tailor:preview instead of all PRs.Nofalse
--environment <ENVIRONMENT>-GitHub Environment for the preview jobs (defaults to the workspace name)No-
--dir <DIR>-dApp directory (for monorepo setups)No"."
--force-Discard hand edits / take over unmanaged files and regenerateNofalse

See Global Options for options available to all commands.

setup tag

Generate a tag-target deploy workflow (tag push triggers deploy).

Usage

tailor-sdk setup tag [options]

Options

OptionAliasDescriptionRequiredDefault
--name <NAME>-nName (defaults to the config 'name')No-
--tag-pattern <TAG_PATTERN>-Tag glob to match (defaults to v*)No"v*"
--branch <BRANCH>-Tag-reachability guard branch (no guard when omitted)No-
--environment <ENVIRONMENT>-GitHub Environment for the plan/deploy jobs (defaults to the workspace name)No-
--dir <DIR>-dApp directory (for monorepo setups)No"."
--force-Discard hand edits / take over unmanaged files and regenerateNofalse

See Global Options for options available to all commands.

Further reading