@know-graph/cli
v0.4.2
Published
CLI tool for KnowGraph
Maintainers
Readme
@know-graph/cli
Command-line interface for KnowGraph — make your codebase AI-navigable.
Installation
npm install -g @know-graph/cli
# or
npx @know-graph/cli <command>Commands
| Command | Description |
|---------|-------------|
| knowgraph init | Initialize KnowGraph in a project (creates .knowgraph.yml) |
| knowgraph parse <path> | Parse annotated files and output extracted entities |
| knowgraph index [path] | Build the SQLite index from annotated source files |
| knowgraph query <term> | Search the index with full-text search and filters |
| knowgraph serve | Start the MCP server for AI assistant integration |
Quick Start
# Initialize in your project
knowgraph init
# Add @knowgraph annotations to your code, then index
knowgraph index ./src
# Search your codebase
knowgraph query "authentication"
knowgraph query --owner "auth-team"
knowgraph query --tags "security,auth"
# Start MCP server for Claude integration
knowgraph serveDocumentation
See the main repository for full documentation, annotation format, and examples.
License
MIT
