CLI Commands
Complete reference for the c42 command-line interface.
c42 add <path>
Add a documentation source.
c42 add ./docs --name my-docs --priority 0.5
| Flag | Description | Default |
|---|---|---|
--name | Name for the source (required) | — |
--priority | Priority weight (0.1–1.0) | 1.0 |
c42 index
Index all added sources. Chunks documents and creates local vector embeddings.
c42 index
Uses content-hash deduplication — safe to run multiple times without creating duplicates.
c42 list
List all registered sources with their names, paths, and priorities.
c42 list
c42 remove <name>
Remove a source by name.
c42 remove my-docs
c42 set-priority <name> <value>
Update the priority of an existing source.
c42 set-priority my-docs 0.8
c42 search <query>
Search indexed content from the command line.
c42 search "error handling patterns"
c42 serve
Start the MCP server. This is what Claude Desktop connects to.
c42 serve
c42 status
Show indexing status and statistics.
c42 status
c42 --help
Show available commands and options.
c42 --help