MCPcopy
hub / github.com/triggerdotdev/trigger.dev / configureDeployCommand

Function configureDeployCommand

packages/cli-v3/src/commands/deploy.ts:88–173  ·  view source on GitHub ↗
(program: Command)

Source from the content-addressed store, hash-verified

86type DeployCommandOptions = z.infer<typeof DeployCommandOptions>;
87
88export function configureDeployCommand(program: Command) {
89 return commonOptions(
90 program
91 .command("deploy")
92 .description("Deploy your Trigger.dev v3 project to the cloud.")
93 .argument("[path]", "The path to the project", ".")
94 .option(
95 "-e, --env <env>",
96 "Deploy to a specific environment (currently only prod and staging are supported)",
97 "prod"
98 )
99 .option("--skip-typecheck", "Whether to skip the pre-build typecheck")
100 .option("--skip-update-check", "Skip checking for @trigger.dev package updates")
101 .option("-c, --config <config file>", "The name of the config file, found at [path]")
102 .option(
103 "-p, --project-ref <project ref>",
104 "The project ref. Required if there is no config file. This will override the project specified in the config file."
105 )
106 )
107 .addOption(
108 new CommandOption(
109 "--self-hosted",
110 "Build and load the image using your local Docker. Use the --registry option to specify the registry to push the image to when using --self-hosted, or just use --push-image to push to the default registry."
111 ).hideHelp()
112 )
113 .addOption(
114 new CommandOption(
115 "--no-cache",
116 "Do not use the cache when building the image. This will slow down the build process but can be useful if you are experiencing issues with the cache."
117 ).hideHelp()
118 )
119 .addOption(
120 new CommandOption(
121 "--push",
122 "When using the --self-hosted flag, push the image to the default registry. (defaults to false when not using --registry)"
123 ).hideHelp()
124 )
125 .addOption(
126 new CommandOption(
127 "--registry <registry>",
128 "The registry to push the image to when using --self-hosted"
129 ).hideHelp()
130 )
131 .addOption(
132 new CommandOption(
133 "--tag <tag>",
134 "(Coming soon) Specify the tag to use when pushing the image to the registry"
135 ).hideHelp()
136 )
137 .addOption(
138 new CommandOption(
139 "--ignore-env-var-check",
140 "(deprecated) Detected missing environment variables won't block deployment"
141 ).hideHelp()
142 )
143 .addOption(new CommandOption("-D, --skip-deploy", "Skip deploying the image").hideHelp())
144 .addOption(
145 new CommandOption("--load-image", "Load the built image into your local docker").hideHelp()

Callers 1

index.tsFile · 0.85

Calls 4

commonOptionsFunction · 0.85
handleTelemetryFunction · 0.85
deployCommandFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…