CLI reference¶
All commands take --workspace and --environment flags, which fall back to the
values in ~/.config/statera/config when omitted.
Global flags¶
| Flag | Description |
|---|---|
--workspace |
Workspace name |
--environment |
Target environment |
--output |
text (default) or json |
--quiet |
Suppress non-error output |
statera login¶
Authenticate and store credentials.
statera apply¶
Validate a file and roll it out.
| Flag | Default | Description |
|---|---|---|
--wait |
off | Block until the rollout completes |
--canary |
10 |
Initial rollout percentage |
statera validate¶
Check a file against the schema without applying it.
statera get¶
Show the live state of a service.
statera rollout¶
Inspect and control an in-progress rollout.
statera rollback¶
Return a service to an earlier revision.
Exit codes¶
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Validation failed |
2 |
Rollout failed a health check |
3 |
Authentication error |