The full command surface of @relay/cli 1.2. Run relay <command> --help for per-command flags.
#Project
| Command | What it does |
|---|
relay init [name] | Scaffold a new project (--template for starters) |
relay dev | Run routes locally with a public tunnel (--watch to reload on save) |
relay deploy | Build and deploy (--env production to skip staging) |
relay promote staging | Promote the staging build to production |
relay rollback | Repoint production to the previous build |
#Observability
| Command | What it does |
|---|
relay logs | Stream structured logs (--filter status>=500) |
relay replay <id> | Re-send a request from the request log |
#Secrets
| Command | What it does |
|---|
relay secrets set KEY=value | Set a secret (--env to target an environment) |
relay secrets pull | Write deployed secrets to a local .env.relay |
relay secrets diff | Show drift between local and deployed values |
#Account
| Command | What it does |
|---|
relay login | Authenticate via the browser |
relay whoami | Show the active account, team, and key scope |
relay migrate-config | Convert legacy relay.config.js to relay.toml |
#Exit codes
0 success1 command failed (details on stderr)2 invalid usage (unknown flag or missing argument)3 authentication required or expired