Skip to content
Arxo Arxo

CLI

Arxo provides two main interfaces: the CLI for command-line analysis and the Rust API for programmatic use.

The Arxo CLI offers these commands:

CommandDescription
analyzeAnalyze a project directory for architecture metrics
initCreate a default config file
metricsList and explain available metrics
cacheManage analysis cache
doctorRun environment diagnostics
configValidate configuration
completionsGenerate shell completions

These options apply to all commands. They are defined once here; command pages refer to this section when relevant.

OptionDescription
--formatOutput format: console, json, html, snapshot, sarif, or msgpack (default: console). Used by analyze and any command that produces report output.
--quietSuppress progress and non-result output (for scripting and CI).

The Arxo crate exposes a Rust API for programmatic analysis. When you use the arxo crate from crates.io, API documentation is available on docs.rs (when published) or via cargo doc --open in a project that depends on arxo.

  • Core (arxo::core) — Type system, data store, orchestrator
  • Metrics (arxo::metrics) — Metric plugins and computation
  • Data (arxo::data) — Import graph, call graph, language parsers
  • Report (arxo::report) — Console, JSON, HTML, and snapshot reporters
  • Policy (arxo::policy) — Policy evaluation engine
  • Config (arxo::config) — YAML configuration loading