You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deployment/preview-branches.mdx
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,30 @@ You can manually specify the branch using `--branch <branch-name>` in the deploy
84
84
85
85
## Manually creating, deploying and archiving preview branches
86
86
87
+
### Using the CLI
88
+
89
+
Creating and deploying a preview branch manually is easy:
90
+
91
+
```bash
92
+
npx trigger.dev@v4-beta deploy --env preview
93
+
```
94
+
95
+
This will create and deploy a preview branch, automatically detecting the git branch. If for some reason the auto-detection doesn't work it will let you know and tell you do this:
0 commit comments