Reference

CLI Reference

Everything the knowit binary can do. Run any command with --help for full option details.

Setup

CommandDescription
knowit installInstall Knowit into AI clients and initialize storage. Options: --client (claude, codex, cursor, windsurf, vscode, gemini, kiro, cline, continue, zed, jetbrains, or comma-separated), --scope (project or global), --source (local or notion), --mcp-server-name, --migrate-md, --markdown-path, --yes, --dry-run
knowit initInitialize Knowit storage manually
knowit serveStart the Knowit MCP server over stdio (what your agent's MCP config runs)

Knowledge

CommandDescription
knowit add <type> <title> <content>Add an entry. Options: --source, --tags, --repo, --domain, --scope, --confidence, --url
knowit search <query>Search entries. Options: --source, --repo, --domain, --limit
knowit resolve <task>Resolve context for a task. Options: --source, --repo, --domain, --files, --limit
knowit listList entries. Options: --source, --type, --repo, --domain, --limit
knowit show <id>Show one entry. Option: --source
knowit statsSummarize entries. Options: --source, --repo, --domain, --limit
knowit previewOpen a read-only local browser UI for Knowit memory. Options: --host, --port (defaults to 4077 with fallback), --no-open

Sources

CommandDescription
knowit source listList configured sources
knowit source show <id>Show one configured source
knowit source connect <provider>Connect a known provider (local or notion). Options: --mcp-server-name, --default
knowit source add-mcp <name> <command>Register a custom external MCP source (advanced). Options: --args, --cwd, --env, --store-tool, --search-tool, --resolve-tool, --default

Import and migration

CommandDescription
knowit import-mdImport markdown knowledge files into a source. Auto-detects files when --path is omitted. Options: --source, --path, --repo, --yes, --dry-run
knowit migrateMigrate entries between sources. Options: --from (default local), --to (default cloud), --yes, --dry-run
knowit migrate-storageConvert a project SQLite database to JSONL storage. Options: --sqlite-path, --jsonl-path, --sources-path, --force, --dry-run

Cloud

CommandDescription
knowit cloud login --token <token>Authenticate with Knowit Cloud
knowit cloud whoamiShow the authenticated account
knowit cloud logoutRemove stored credentials

The current public release focuses on the open-source, local-first workflow; hosted cloud plans are not publicly enabled right now.

Typical session

Terminal
$ npx knowit install
$ knowit add rule "Use repository classes" "No direct DB access from controllers."
$ knowit search "repository pattern"
$ knowit resolve "add webhook retry handling" --repo api-gateway --domain billing
$ knowit import-md --yes