Corvus Edge v2.4.1
Docs / Reference / CLI

CLI reference

The corvus CLI wraps the HTTP API for local development and CI. It reads credentials from ~/.config/corvus/credentials or the CORVUS_TOKEN environment variable.

Installation

# macOS / Linux
curl -fsSL https://get.corvusedge.io/install.sh | sh

# Homebrew
brew install corvusedge/tap/corvus

# npm
npm i -g @corvusedge/cli

Command reference

CommandDescription
corvus loginAuthenticate via device flow and store a token locally.
corvus initScaffold corvus.toml in the current directory.
corvus deployUpload a directory and create a release.
corvus releases listShow recent releases and their promotion state.
corvus rollbackRepoint production at a previous release.
corvus purgeInvalidate paths or tags at the edge.
corvus logsStream request logs for a project.

deploy

corvus deploy [dir] [flags]

  --prod            promote the release to production
  --target string   named target to deploy to (default "staging")
  --message string  release message shown in the dashboard
  --dry-run         upload and validate without creating a release
  --concurrency int parallel uploads (default 8)

purge

corvus purge --path "/pricing" --path "/assets/*"
corvus purge --tag nav --wait

--wait blocks until every edge reports the purge as applied. Without it, the command exits as soon as the job is accepted.

Using it in CI

# .github/workflows/deploy.yml
- run: npm ci && npm run build
- run: npx @corvusedge/cli deploy ./dist --prod
  env:
    CORVUS_TOKEN: ${{ secrets.CORVUS_TOKEN }}
Note — tokens used in CI should be scoped to projects:write only. Rotate them from Team → Tokens.