On this page
Examples
Where is the runnable material, and what does each piece prove? This page is the index: every entry links to a script or scenario that exists in the repository, with what it runs and what success looks like.
The rule for everything listed here: an example that cannot be pasted and run
does not belong here. Per the examples
README, each script is the plain command sequence a user
would type, in order — set -eu, a usage comment, env for values, nothing
else — and verification is itself a printed command.
Core scripts
Four scripts in examples/ cover the first-run, work, secrets, and queue surfaces.
onboarding-local-job.sh
From zero to one completed local job, no cloud account needed. Runs
stado config init, config validate, doctor --fix-hints, then submits a
trivial local workload (stado submit --profile local -- echo hello-from-stado), watches it with stado job watch, and downloads the
result with stado results. Success is the watched job finishing and
results printing the downloaded output of that job.
sh onboarding-local-job.sh
secrets-store-and-read.sh
The daily secrets loop. The value travels via stdin only, because argv leaks
into ps and shell history. Runs stado secrets put demo-vendor fed by
printf, reads it back with stado secrets get demo-vendor, then lists what
the grant may see with stado secrets ls. Success is get printing the
stored value and ls showing demo-vendor.
EXAMPLE_SECRET=... sh secrets-store-and-read.sh
queue-maintenance.sh
Stop dispatch, let running work finish, reopen — nothing is cancelled, queued
jobs wait for resume. Runs stado queue status, pause, status again,
drain, resume, and a final status. Success is the final queue status
showing the queue open again with no work lost.
sh queue-maintenance.sh
fleet-health-check.sh
Fleet truth without ssh: who reported lately, who answers, what services run.
Runs stado registry beacon-age (every registry host and its last heartbeat,
worst first), stado host ping <target> --json (reachability verdict — ssh
check plus beacon age — one target per invocation), and
stado service list (managed services across the fleet, from beacons alone).
Success is all three commands printing fleet state gathered from beacons and
the registry, with no direct login to any machine.
sh fleet-health-check.sh
Fleet scripts
The fleet/ subdirectory holds the enrollment sequences, one method per script:
- add-remove-host.sh — the
declaremethod:stado registry host addwith--sshand--release-platform, removal via pull → edit → validate → push; ends net-zero, the registry looks exactly like before. - onboard-host.sh — bring a device to reporting life over a channel that already exists, after the machine trusts the fleet's public key; only the public key ever reaches the machine.
- invite-a-machine.sh — the
invitemethod end to end, operator side, in the offline mode that publishes nothing: the operator never touches the machine and the fleet's private key never leaves the operator's vault.
Provider scripts
The providers/ subdirectory lights up opt-in backends, per user. Each follows the same shape: credentials from your env into your skarbiec, provider flipped on in your config, one verify command.
- enable-aws.sh —
stado-awscredentials fromAWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY, verified withstado config validate. - enable-azure.sh — the
wisent-azure-billing-spservice principal fromAZURE_TENANT_ID,AZURE_CLIENT_ID,AZURE_CLIENT_SECRET. - enable-gcp.sh —
stado-gcpservice account JSON fromGCP_SERVICE_ACCOUNT_JSON, verified withstado doctor. - enable-vast.sh —
stado-vastAPI key fromVAST_API_KEY, verified withstado vast list.
Fleet scenarios
The fleet examples are prose scenarios with command sequences rather than single scripts:
- Onboarding a machine — agent-attested enrollment: a join request or
enrollcreates only a non-routableprovisioning_targetsentry, and the machine enterstargetsand a fleet only after the installed agent publishes fresh capacity with its Stado version. - Fleets as named sets — declaring fleets in the canonical registry,
assigning machines (one fleet per machine), and inspecting them with
list,status, anddoctor --fleet. - Keys and the catalog — SSH host keys in the same global credential backend as every other Stado credential, and the central enrollment catalog every machine can read.
Walkthroughs
Two scenarios are written as full prose walkthroughs rather than scripts:
- service deploy plus self-repair — one declared service breaking and the autonomy loop repairing it, as commands and their readings.
- release end-to-end — one release from source to fleet and back, including rollback and per-host quarantine.
For flag-by-flag command details, see the cli reference.
Source: this website