Every command accepts the global options-C, --root <dir> (target another project),
--no-daemon (bypass a running daemon), and — for query commands — --json (machine-readable
output). --json is compact (single-line, no indentation) by default, since the consumer
is an LLM agent; add --pretty for human-readable, indented JSON. They’re omitted from the
tables below for brevity.
Run greplm <command> --help for the full flag list. Most query commands support --limit /
--offset for pagination.
Indexing
Command
Arguments & key options
What it does
greplm init
—
Create .greplm/ with a default config (no indexing)
Self-update via the official install script; --check reports without installing
Agent & MCP setup
Command
Arguments & key options
What it does
greplm welcome
—
Show first-run checklist (MCP config, agent files, search)
greplm mcp config
[--pretty] [-q/--quiet]
Print copy-paste MCP client JSON (stdout) with paste hints (stderr)
greplm agent add
[tool] [--global] [--force]
Install the bundled subagent and main-loop guidance for a tool (auto-detects when omitted; falls back to AGENTS.md). --force refreshes the guidance block in place
greplm agent list
[--global]
List supported tools with their subagent and rules (memory-file) destinations