clavis promote
Promote selected keys between environments
sh
clavis promote [flags]Copy values from one environment to another, safely: Clavis shows the differences, you pick keys, the schema is checked, the target is snapshotted, then the values are copied. Statuses are added, changed, missing (only in the target) and unchanged.
Examples
sh
clavis promote --from dev --to stagingOnly some keys
sh
clavis promote --from dev --to staging --keys DATABASE_URL,STRIPE_KEYPick keys interactively
sh
clavis promote --from staging --to production --interactiveAsk an admin to approve
sh
clavis promote --from staging --to production --requestFlags
--all- promote every added and changed key
--from string- source environment (default: linked env)
-i, --interactive- choose keys interactively
--keys string- comma-separated keys to promote
--message string- change message recorded in history
--request- create an approval request instead of writing
--snapshot- snapshot the target before writing Default:
true --to string- target environment
--yes- skip production confirmation
Details
- New and changed keys are selected by default.
- Schema errors block the promotion.
- Protected targets need an Admin or Owner; others pass
--requestand an admin approves it on the Promote page.
Global flags
These work with every command.
--debug- enable debug logging
--env string- environment slug
--json- output machine-readable JSON
--org string- organization slug
--overlay string- tenant/region overlay slug
--path string- folder path (default /)
--project string- project slug
--server string- Clavis server URL (default: from .clavis.yaml or saved login)
-h, --help- help for any command