Commands

vakna receipt

Note
This page is generated from a mock CLI, and its numbers are placeholders.

Verified against vakna 0.0.0-mock on · generated from the CLI's own definitions

vakna receipt: what a box or a task cost, and what the platform did. Proposed: the real CLI doesn't have this command yet.

Synopsis

sh
vakna receipt <box|task>

Flags

Flag Default What it does
--money <variant> cost+counterfactual none, cost, cost+counterfactual, cost+savings
--width <columns> 80 the terminal width to lay out for
--format <format> text text, or json: one JSON object per line
--json off the same as --format json
-h, --help off this help

Examples

Example

sh
vakna receipt api
prints receipt sbx_eu1a_8s9t0v1w mocked ──────────────────────────────────────────────────────────────────────────────── started in 0.34s · from snapshot ran pnpm test · exit 0 38.24s wall clock 41.30s cost $0.004 ──────────────────────────────────────────────────────────────────────────────── without the snapshot: +8.11s of setup (8.45s per box, measured)

Exit code 0.

Another example

sh
vakna receipt prove-flaky-retry --money cost --format json
prints {"v":1,"event":"receipt","receipt":{"kind":"task","id":"tsk_eu1a_01JB7Y4D5E6F7G8H9J0K1M2N3P","name":"prove-flaky-retry","startedAt":"2026-10-17T11:20:00Z","endedAt":"2026-10-17T11:22:11Z","boxes":50,"coldBoots":1,"forks":49,"forkEachMs":341,"medianReadyMs":346,"wallClockMs":4700000,"elapsedMs":131000,"suspendedMs":0,"passed":42,"failures":[{"signature":"e3b0c442","label":"assertion in retry_test.go:88","count":6},{"signature":"9f86d081","label":"timeout after 30s","count":2}],"costMicros":456944,"trial":false,"mocked":true},"mocked":true}

Exit code 0.

When it fails

sh
vakna receipt api --money gold
prints vakna: unknown --money gold hint: vakna receipt api --money none # one of none, cost, cost+counterfactual, cost+savings

Exit code 2.

Exit codes

Code Meaning
0 ok
1 vakna failed; under shell, run, try or fork, the command in the box failed
2 usage: a missing argument, an unknown flag or command

JSON output

With --format json (or --json) every line is one JSON object. v is the format's version; mocked marks numbers from the mock.

sh
vakna receipt prove-flaky-retry --money cost --format json
prints {"v":1,"event":"receipt","receipt":{"kind":"task","id":"tsk_eu1a_01JB7Y4D5E6F7G8H9J0K1M2N3P","name":"prove-flaky-retry","startedAt":"2026-10-17T11:20:00Z","endedAt":"2026-10-17T11:22:11Z","boxes":50,"coldBoots":1,"forks":49,"forkEachMs":341,"medianReadyMs":346,"wallClockMs":4700000,"elapsedMs":131000,"suspendedMs":0,"passed":42,"failures":[{"signature":"e3b0c442","label":"assertion in retry_test.go:88","count":6},{"signature":"9f86d081","label":"timeout after 30s","count":2}],"costMicros":456944,"trial":false,"mocked":true},"mocked":true}

Errors

--help

This page and the help text come from one definition.

Output
vakna receipt · what a box or a task cost, and what the platform did Proposed: the real CLI doesn't have this command yet. usage vakna receipt <box|task> flags --money <variant> none, cost, cost+counterfactual, cost+savings (default: cost+counterfactual) --width <columns> the terminal width to lay out for (default: 80) --format <format> text, or json: one JSON object per line (default: text) --json the same as --format json (default: off) -h, --help this help (default: off) examples vakna receipt api vakna receipt prove-flaky-retry --money cost --format json exit codes 0 ok 1 vakna failed; under shell, run, try or fork, the command in the box failed 2 usage: a missing argument, an unknown flag or command

View as Markdown