Skip to content

CLI Reference

Required Options

OptionShortDescription
--source-sRoot directory to scan
--bolt-bMemgraph Bolt URL, for example bolt://localhost:7687
--project-PLogical project namespace for graph nodes

Common Options

OptionDefaultDescription
--apply-schemafalseApply Memgraph constraints and indexes before ingestion
--wipe-project-codefalseDelete this project's code graph before ingesting
--wipe-project-memoriesfalseDelete this project's memory graph before ingesting
--watchfalseWatch the source tree and re-ingest changed files
--threads1Parser threads feeding one serialized Memgraph writer; 4 to 8 is usually useful for large projects
--embedding-modeldefaultEmbedding model preset for CodeChunk and MemoryChunk vectors: default (all-MiniLM-L6-v2) or strong (all-mpnet-base-v2); dimensions are discovered by Memgraph
--with-memoriesfalseInclude Memory workflow instructions and refresh MemoryChunk rows
--init-instructionsfalseWrite or replace managed agent instructions and exit
--instructions-agentcodexAgent preset: codex, claude, gemini, github, or copilot
--instructions-filepreset fileInstruction file to update
--no-mcpfalseInstall mgtools CLI instruction templates for agents without MCP access; implies --init-instructions
--helpPrint CLI help
--versionPrint CLI version

Runtime Options

OptionDefaultDescription
--js-runtime-modemanagedmanaged, system, or offline
--js-runtime-cache~/.cache/memgraph-ingesterCache for managed Node.js and TypeScript downloads
--check-js-runtimefalseRun a JS parser runtime smoke check without connecting to Memgraph
--python-runtime-modemanagedmanaged, system, or offline
--python-runtime-cache~/.cache/memgraph-ingesterCache for managed CPython downloads and private venvs
--check-python-runtimefalseRun a Python parser runtime smoke check without connecting to Memgraph
--ctags-runtime-modemanagedmanaged, system, or offline
--check-ctags-runtimefalseRun a ctags runtime smoke check without connecting to Memgraph

Exit Codes

CodeMeaning
0Success
1Invalid arguments or runtime setup failure
2One or more files failed to parse or ingest

More Detail

The project README remains the exhaustive command reference: README.md.

Released under the MIT License.