Rollback
expanso-cli job rollback
Rollback a job to a previous version
Synopsis
Rollback a job to a previous version.
This creates a new version with the spec from the target version and triggers a new rollout. The job version number continues to increment (monotonic versioning), but the spec content comes from the target version.
If no --to-version is specified, it defaults to the last stable version (the RollbackToVersion from the current rollout status).
Example: Current: version 3 (new spec) Rollback to version 1 Result: version 4 (with version 1's spec)
expanso-cli job rollback JOB_ID_OR_NAME [flags]
Examples
# Rollback to the previous stable version
expanso-cli job rollback my-job
# Rollback to a specific version
expanso-cli job rollback my-job --to-version 1
# Rollback with a reason
expanso-cli job rollback my-job --reason "v3 caused issues in production"
# Dry run to see what would happen
expanso-cli job rollback my-job --to-version 1 --dry-run
# Force rollback without confirmation
expanso-cli job rollback my-job --force
Options
--dry-run Validate without applying
-f, --force Force rollback without confirmation
-h, --help help for rollback
--namespace string Job namespace
--reason string Reason for rollback
--to-version uint Target version to rollback to (default: previous stable version)
Options inherited from parent commands
--auth-token string API bearer authentication token
-e, --endpoint string API endpoint URL
-k, --insecure Skip TLS certificate verification
-p, --profile string Profile to use for configuration
--timeout string Request timeout duration
-v, --verbose Enable verbose logging
SEE ALSO
- expanso-cli job - Manage jobs