Files
triggerdotdev--trigger.dev/docs/cli-preview-archive.mdx
T
nicktrn 7a34c1102b Feat: v4 self-hosting (#2155)
* self-hosting stuff goes in /hosting

* add v4 tags

* add main compose file

* draft overview

* add webapp env vars

* overview tweaks

* add supervisor env vars

* move old docker guide

* new sidebar structure

* update github actions docs

* docker draft

* use env vars for s3 creds

* this might just work

* split into multiple files

* update guide

* document machine overrides

* split legacy docs into different section

* some fixes

* some tweaks

* add login and init instructions

* don't cursorignore .env.example
2025-06-07 00:57:47 +01:00

64 lines
1.4 KiB
Plaintext

---
title: "CLI preview archive command"
sidebarTitle: "preview archive"
description: "The `trigger.dev preview archive` command can be used to archive a preview branch."
tag: "v4"
---
import UpgradeToV4Note from "/snippets/upgrade-to-v4-note.mdx";
import ProjectPathArg from "/snippets/cli-args-project-path.mdx";
import CommonOptions from "/snippets/cli-options-common.mdx";
import ProjectRefOption from "/snippets/cli-options-project-ref.mdx";
import EnvFileOption from "/snippets/cli-options-env-file.mdx";
import ConfigFileOption from "/snippets/cli-options-config-file.mdx";
import SkipUpdateCheckOption from "/snippets/cli-options-skip-update-check.mdx";
import BranchOption from "/snippets/cli-options-branch.mdx";
<UpgradeToV4Note />
Run the command like this:
<CodeGroup>
```bash npm
npx trigger.dev@v4-beta preview archive
```
```bash pnpm
pnpm dlx trigger.dev@v4-beta preview archive
```
```bash yarn
yarn dlx trigger.dev@v4-beta preview archive
```
</CodeGroup>
It will archive the preview branch, automatically detecting the branch name from git. You can manually specify the branch using the `--branch` option.
## Arguments
```
npx trigger.dev@v4-beta preview archive [path]
```
<ProjectPathArg />
## Options
<BranchOption />
<ConfigFileOption />
<ProjectRefOption />
<EnvFileOption />
<SkipUpdateCheckOption />
### Common options
These options are available on most commands.
<CommonOptions />