Axon · Guides
Index the repository
On macOS (arm64), install with brew install ivannovak/cns/axon; the tap is
private, so downloads need HOMEBREW_GITHUB_API_TOKEN. On Ubuntu 20.04 LTS
and later LTS releases (x86_64 and aarch64), install the release tarball with
the CNS Linux installer, which places it in ~/.local/bin. See
installation and access for both paths.
Once you have the installed binary, build an index from your project's checkout and inspect its status:
axon index --full --json
axon status --json
The repository root defaults to the current directory. Use --corpus <directory> to select another checkout. Indexing writes .axon/axon.db by default; keep the database and embedding caches within your source-access boundary because they contain source-derived information.
Many queries automatically build a missing default index when the corpus contains .git. Do not treat a search or status request as unconditionally read-only. An explicit --db disables that automatic missing-default build. See discovery and database configuration for path precedence and scan exclusions.
Read the build mode, warnings, degraded-file information and status trust/freshness fields, not just the exit code. A successful command does not establish that the graph is current or complete.