File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import ProjectRefOption from "/snippets/cli-options-project-ref.mdx";
44import EnvFileOption from " /snippets/cli-options-env-file.mdx" ;
55import ConfigFileOption from " /snippets/cli-options-config-file.mdx" ;
66import SkipUpdateCheckOption from " /snippets/cli-options-skip-update-check.mdx" ;
7+ import BranchOption from " /snippets/cli-options-branch.mdx" ;
78
89Run the command like this:
910
@@ -56,9 +57,12 @@ npx trigger.dev@latest deploy [path]
5657<SkipUpdateCheckOption />
5758
5859<ParamField body = " Environment" type = " --env | -e" >
59- Defaults to ` prod ` but you can specify ` staging ` .
60+ Defaults to ` prod ` but you can specify ` staging ` or ` preview ` . If you specify ` preview ` we will
61+ try and automatically detect the branch name from git.
6062</ParamField >
6163
64+ <BranchOption />
65+
6266<ParamField body = " Dry run" type = " --dry-run" >
6367 Create a deployable build but don't deploy it. Prints out the build path so you can inspect it.
6468</ParamField >
Original file line number Diff line number Diff line change 1+ <ParamField body = " Preview branch" type = " --branch | -b" >
2+ When using ` --env preview ` the branch is automatically detected from git. But you can manually
3+ specify it by using this option, e.g. ` --branch my-branch ` or ` -b my-branch ` .
4+ </ParamField >
You can’t perform that action at this time.
0 commit comments