CLI Reference¶
All CLI commands are available via ao <command>.
Vault management¶
ao init¶
Initialize a new vault at the current directory (or a specified path).
ao init
ao init --vault-path ./my-vault
ao init --shared-vault ./team --personal-vault ~/.private # Dual-vault
ao status¶
Show vault, palace, and KG overview.
ao doctor¶
Full health check — vault structure, KG, palace, semantic index, orphans.
Output: rich table with OK / WARN / ERROR / INFO rows for each check.
ao validate¶
Validate all notes in the vault for frontmatter and wikilink issues.
ao orphans¶
Detect orphaned notes (no incoming or outgoing wikilinks).
Session hooks¶
ao session-start¶
Run the session start hook. Outputs ~2K tokens of context.
ao wrap-up¶
Run the stop/wrap-up hook. Saves session summary.
Memory operations¶
ao classify¶
Classify a message and show routing hints.
ao search¶
Semantic search across the vault.
ao search "authentication decisions"
ao search "postgres" --limit 10
ao search "decisions" --vault shared # Dual-vault
ao search "drafts" --vault personal
ao write-note¶
Write content to the vault with auto-classification.
ao write-note "We won the Acme contract" --tags win,enterprise
ao write-note "Private notes" --vault personal # Dual-vault
Knowledge graph¶
ao kg-query¶
Query the knowledge graph for an entity.
ao kg-timeline¶
Get the full timeline of events for an entity.
ao kg-stats¶
Show knowledge graph statistics.
ao kg-populate¶
Populate the KG from all vault notes (wikilinks, tags, folders).
Palace¶
ao wings¶
List all palace wings.
ao rooms¶
List rooms in a wing.
ao tunnel¶
Find tunnels between two wings.
Index and sync¶
ao rebuild-index¶
Rebuild the semantic search index.
ao sync¶
Full sync: rebuild KG, palace, and semantic index from vault.
Dual-vault operations¶
ao export¶
Export a note from personal vault to shared vault.
# Preview first
ao export work/decisions/postgres.md --shared-vault ./team --personal-vault ~/.private
# Confirm export
ao export work/decisions/postgres.md --shared-vault ./team --personal-vault ~/.private --confirm
ao import-note¶
Import a note from shared vault to personal vault.
ao migrate¶
Migrate a single vault to dual-vault architecture.