Skip to content

Commit 44307a6

Browse files
committed
Added manual deploy/archive instructions
1 parent cfc98b3 commit 44307a6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/deployment/preview-branches.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,30 @@ You can manually specify the branch using `--branch <branch-name>` in the deploy
8484

8585
## Manually creating, deploying and archiving preview branches
8686

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:
96+
97+
```bash
98+
npx trigger.dev@v4-beta deploy --env preview --branch <branch-name>
99+
```
100+
101+
You can manually archive a preview branch with the CLI:
102+
103+
```bash
104+
npx trigger.dev@v4-beta preview archive
105+
```
106+
107+
Again we will try auto-detect the current branch. But you can specify the branch name with `--branch <branch-name>`.
108+
109+
### In the dashboard
110+
87111
### Creating and archiving preview branches from the dashboard
88112

89113
In the dashboard, you can

0 commit comments

Comments
 (0)