Getting started
Start with Sonde in 5 Minutes
Fast path to generate and validate a manifest-driven CLI workflow with Sonde.
Purpose
Get from zero to a reproducible manifest workflow in a few commands using the reference CLI.
Mental model
generatecreates the standardized contract artifact (sondage.manifest.json).evaluateruns the same scoring asscorebut without a local manifest (generates one in memory). Use for one-off checks or CI.scoreis the canonical CLI evaluation report against a local manifest.manifestprints Sonde's own reference Sondage manifest (self-compliance check).runis a deterministic diagnostic command.publishis an optional step to submit the report to the website API.
Inputs
- Node.js and npm/pnpm installed.
- A target CLI available in
PATH(recommended local fixture:cli-good). - Write access in current working directory.
Outputs
sondage.manifest.jsonin current directory.- Deterministic run output.
- Scoring output with a 0-100 score.
Steps
1) Install or run directly
npx @sonde-sh/sonde --help2) Generate manifest
sonde generate cli-good --jsonExpected output shape:
{
"ok": true,
"apiVersion": "1.0.0",
"command": "generate",
"cli": "cli-good",
"result": {
"manifest": {
"version": "1.0.0"
},
"outputPath": "sondage.manifest.json",
"commandCount": 2
}
}3) Inspect Sonde reference manifest
sonde manifest --jsonExpected output shape:
{
"ok": true,
"apiVersion": "1.0.0",
"command": "manifest",
"result": {
"version": "1.0.0",
"cli": {
"name": "sonde",
"binary": "sonde"
}
}
}4) Run deterministic check
sonde run cli-good --jsonExpected output shape:
{
"ok": true,
"apiVersion": "1.0.0",
"command": "run",
"cli": "cli-good",
"result": {
"ok": true,
"exitCode": 0
}
}5) Compute score
sonde score cli-good --jsonExpected output shape:
{
"ok": true,
"apiVersion": "1.0.0",
"command": "score",
"cli": "cli-good",
"result": {
"manifestVersion": "1.0.0",
"generatedAt": "2026-03-05T00:00:00.000Z",
"total": 100
}
}Edge cases
- If target CLI is missing, generation fails with execution error.
runandscorerequiresondage.manifest.jsonin current directory.- If CLI output looks interactive, run quality decreases and score may drop.
- For stable local docs/testing, prefer
cli-goodand compare againstcli-ok/cli-badto understand scoring trade-offs. - Manifest loading fails with
UNSUPPORTED_VERSIONwhen manifest major version is not supported.
Next: Sonde and Manifest to understand the model and contract.