CLI Reference

Complete reference for the engrams command-line interface.

Global usage

engrams <command> [options]

Top-level flags

FlagDescription
--help, -hShow help and exit
--versionPrint the Engrams version and exit

engrams serve

Start the Engrams MCP server. This is the default command when no subcommand is provided.

engrams serve [--mode stdio|http] [--host HOST] [--port PORT] [--log-level LEVEL]
FlagDefaultDescription
--modestdioCommunication mode: stdio or http
--host127.0.0.1Host to bind (HTTP mode only)
--port8000Port to listen on (HTTP mode only)
--log-levelINFOLogging level: DEBUG, INFO, WARNING, ERROR

Examples

# stdio mode (for IDE MCP clients)
engrams serve --mode stdio

# HTTP mode
engrams serve --mode http --host 0.0.0.0 --port 8000

# Verbose logging
engrams serve --mode stdio --log-level DEBUG

engrams init

Scaffold the AI strategy file for a supported coding tool into the current project directory. Run this from your project root.

engrams init --tool <name> [--list] [--force] [--project-dir DIR]
FlagDescription
--tool NAMETarget AI tool (see supported tools below)
--listList all supported tool names and exit
--forceOverwrite an existing strategy file
--project-dir DIRTarget project directory (default: .)

Supported tools

Tool nameOutput file
roo.roo/rules/engrams_strategy
cline.clinerules
cursor.cursorrules
windsurf.windsurfrules
claude-codeCLAUDE.md
claude-desktopPrints instructions for manual paste
genericengrams_strategy.md

Examples

# List available tools
engrams init --list

# Initialize for Roo Code
engrams init --tool roo

# Force overwrite an existing file
engrams init --tool cursor --force

# Scaffold into a specific directory
engrams init --tool cline --project-dir /path/to/project

engrams dashboard

Start the browser-based Engrams knowledge dashboard.

engrams dashboard [--workspace DIR] [--port PORT] [--enable-chat] [--ollama-model MODEL]
FlagDefaultDescription
--workspace DIRAuto-detectedPath to the project workspace
--port PORT8080Port for the dashboard web server
--enable-chatoffEnable the Ollama chat panel
--ollama-model MODELllama3.2Ollama model for the chat panel

Examples

# Auto-detect workspace
cd /path/to/project && engrams dashboard

# Explicit workspace
engrams dashboard --workspace /path/to/project

# With Ollama chat
engrams dashboard --enable-chat --ollama-model llama3.2

# Custom port
engrams dashboard --port 9000
Legacy command: engrams-dashboard remains available for backward compatibility but engrams dashboard is preferred.