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";
4
4
import EnvFileOption from " /snippets/cli-options-env-file.mdx" ;
5
5
import ConfigFileOption from " /snippets/cli-options-config-file.mdx" ;
6
6
import SkipUpdateCheckOption from " /snippets/cli-options-skip-update-check.mdx" ;
7
+ import BranchOption from " /snippets/cli-options-branch.mdx" ;
7
8
8
9
Run the command like this:
9
10
@@ -56,9 +57,12 @@ npx trigger.dev@latest deploy [path]
56
57
<SkipUpdateCheckOption />
57
58
58
59
<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.
60
62
</ParamField >
61
63
64
+ <BranchOption />
65
+
62
66
<ParamField body = " Dry run" type = " --dry-run" >
63
67
Create a deployable build but don't deploy it. Prints out the build path so you can inspect it.
64
68
</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