Back to Trigger

CLI preview archive command

docs/cli-preview-archive.mdx

4.4.51.1 KB
Original Source

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";

Run the command like this:

<CodeGroup>
bash
npx trigger.dev@latest preview archive
bash
pnpm dlx trigger.dev@latest preview archive
bash
yarn dlx trigger.dev@latest 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@latest preview archive [path]
<ProjectPathArg />

Options

<BranchOption /> <ConfigFileOption /> <ProjectRefOption /> <EnvFileOption /> <SkipUpdateCheckOption />

Common options

These options are available on most commands.

<CommonOptions />