> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.forboc.ai/npm/cli/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.forboc.ai/_mcp/server. # CLI Reference # CLI Reference (v0.6.3) The CLI binary is shipped by `@forbocai/node` as `forbocai`. ```bash npx forbocai [subcommand] [args] ``` ## Top-Level Commands * `version` * `doctor` * `status` * `config set ` * `config get ` * `config list` * `cortex init [model]` * `npc create|state|update|process|chat` * `memory list|recall|store|clear|export` * `bridge validate|rules|preset` * `soul export|import|list|chat` * `ghost run|status|results|stop|history` ## Config and Environment CLI config file: `~/.forbocai.json` Supported env vars: * `FORBOCAI_API_URL` * `FORBOCAI_API_KEY` Resolution precedence is env var first, then config file. ## Common Commands ```bash # health npx forbocai doctor npx forbocai status # config npx forbocai config set apiUrl https://api.forboc.ai npx forbocai config set apiKey fb_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx npx forbocai config list # cortex npx forbocai cortex init smollm2-135m # npc npx forbocai npc create "A careful blacksmith" npx forbocai npc process "Can you repair this sword?" npx forbocai npc chat # memory npx forbocai memory list npx forbocai memory recall "sword" npx forbocai memory store "Player repaired their blade" # bridge npx forbocai bridge rules npx forbocai bridge validate ./action.json npx forbocai bridge preset rpg # soul npx forbocai soul export npx forbocai soul import npx forbocai soul list 20 # ghost npx forbocai ghost run exploration npx forbocai ghost status npx forbocai ghost results npx forbocai ghost history ``` ## Notes * `memory clear ` prompts for confirmation before API-side deletion. * `npc process` and `npc chat` require API connectivity and a configured key when the target API enforces auth. * `npc state` operates on the currently active in-memory NPC state in the CLI process. > Commands implemented by @forbocai/node