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
| Command | Description |
|---|---|
corvus login | Authenticate via device flow and store a token locally. |
corvus init | Scaffold corvus.toml in the current directory. |
corvus deploy | Upload a directory and create a release. |
corvus releases list | Show recent releases and their promotion state. |
corvus rollback | Repoint production at a previous release. |
corvus purge | Invalidate paths or tags at the edge. |
corvus logs | Stream 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.