Installation | Authorization | Usage | Changelog
The Steadybit CLI enables you to use the Steadybit platform features easier in an automated way and implement e.g. GitOps practices easily. You can retrieve, create or adjust experiment designs as well as running them straight away.
- You need to have a Steadybit account. You can create a free account via our website.
- at least Node.js 22.13 as local runtime
Via npm
npm install -g steadybitYou need an API access token. You can grab one via our platform through the Settings -> API Access Tokens page.
➜ steadybit config profile add
? Profile name: steadybit
? API access token: [hidden]
? Base URL of the Steadybit server: https://platform.steadybit.comThe platform meters API requests with a token bucket: a burst of 100 requests, refilling
by 25 every 15 seconds. The CLI paces itself to that allowance, so a command that walks a
large tenant — experiment dump above all — takes a while rather than being
rejected part way through. It warns up front when a dump covers more than 100 experiments.
Override the allowance if your deployment is configured differently:
| Variable | Default | Meaning |
|---|---|---|
STEADYBIT_RATE_LIMIT_BURST |
100 |
Requests allowed before pacing |
STEADYBIT_RATE_LIMIT_REFILL |
25 |
Requests restored each interval |
STEADYBIT_RATE_LIMIT_INTERVAL |
15 |
Length of that interval, seconds |
Get an existing experiment yaml from Steadybit and write it to file:
steadybit experiment get -k ADM-1 -f experiment.ymlOnly apply the experiment:
steadybit experiment apply -f experiment.ymlApply and run the experiment in one step:
steadybit experiment run -f experiment.ymlRun existing experiment:
steadybit experiment run -k ADM-1Dump all experiments and executions from all teams:
steadybit experiment dump -d ./dumpDump only certain teams, by team key:
steadybit experiment dump -d ./dump --team ADM WEBHOOKValidate advice status
steadybit validate-status -e "Global" -q "k8s.cluster-name=dev-demo and k8s.namespace=steadybit-demo"You can also use the cli via our container image:
docker run -e"STEADYBIT_TOKEN=****" steadybit/cli:latest experiment get -k ADM-1