CLI Reference
CortexPrism provides a comprehensive command-line interface for interacting with the agentic system. All commands are invoked through the cortex binary.
Usage
cortex <command> [options]
Global Options
| Option | Environment Variable | Description |
|---|
--config, -c | CORTEX_CONFIG | Path to config file (default: ~/.cortex/config.json) |
--data-dir | CORTEX_DATA_DIR | Data directory path (default: ~/.cortex/) |
--verbose, -v | — | Enable verbose logging |
--help, -h | — | Show help |
--version, -V | — | Show version |
Available Commands
| Command | Description |
|---|
cortex chat | Interactive streaming chat session with LLM providers |
cortex serve | Start the HTTP + WebSocket server with web UI |
cortex daemon | Manage background daemon processes (validator, executor, scheduler) |
cortex stop | Stop server, daemons, or both |
cortex run | Execute code files in sandboxed or direct subprocess mode |
cortex memory | Search and manage the 5-tier memory system |
cortex reflect | Inspect and consolidate reflection patterns |
cortex vault | Encrypted credential vault (AES-256-GCM) |
cortex policy | Security policy rule management |
cortex jobs | Manage scheduled cron jobs |
cortex sessions | List and manage chat sessions |
cortex setup | First-run setup wizard |
cortex migrate | Initialize or migrate all databases |
cortex soul | Agent soul/persona management |
cortex discord | Discord bot integration |
cortex plugins | Plugin management |
cortex marketplace | Marketplace interaction |
cortex import | Import data from other sources |
cortex agent | Agent configuration management |
cortex service | Micro-service mode management |