Skip to content

once cache

Cache management

Synopsis

text
once cache [OPTIONS] <SUBCOMMAND>

Description

Inspect, read, and write the content-addressed cache that every Once action runs through. cache stats reports counts and on-disk size; cache blob and cache action expose the CAS and action-result tables as primitives for debugging, reproducibility checks, and external tooling. Useful for answering "did this run hit the cache?" without scraping command output.

Options

FlagValueDefaultDescription
-C, --directory<DIR>Project root. Defaults to the current directory; the cache lives under <project>/.once/. Mirrors make -C
--format<FORMAT>humanOutput format for Once's structured data (cache stats, run/exec trailers). Defaults to a human-readable rendering; pass json or toon to get machine-parseable output for scripting and for agent consumers
-v, --verbose(flag)0Increase log verbosity. Repeat for more (-v: info, -vv: debug, -vvv: trace). Overridden by RUST_LOG
-q, --quiet(flag)falseSuppress human-mode success and progress trailers. Errors and the structured envelope of --format json/toon still print. Mirrors the -q flag of common build tools
--list(flag)falsePrint the command surface at the current command depth

Subcommands

Released under an open-source license.