CLI Reference
The SwarmVault CLI covers the full local workflow: initialize a schema-guided vault, ingest, compile, query, lint, automation, graph serving, and MCP access.
Installation
npm install -g @swarmvaultai/cliThe CLI is available as both swarmvault and vault.
Commands
| Command | Description |
|---|---|
init | Initialize a SwarmVault workspace |
ingest <input> | Ingest a local file or URL |
inbox import [dir] | Import captured files from the inbox |
compile | Compile wiki pages, graph data, and search |
query <question> | Ask the compiled vault a question |
lint | Run anti-drift and structural checks |
watch | Watch the inbox and run import/compile cycles |
mcp | Run the vault as a local MCP server |
graph serve | Start the graph viewer |
install --agent | Install agent rules |
Global Options
--version- Show version number--help- Show help for any command