> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.livingbrain.com/cli/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.livingbrain.com/_mcp/server. # CLI > **Note:** This page contains both a page directory (above) and the landing page content (below). The page directory is generated for agent use and does not appear on the landing page. > For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.livingbrain.com/cli/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.livingbrain.com/_mcp/server. # CLI Generated by Fern Any coding agent that can run shell commands can use `livingbrain` directly. Install it, set your key, and ask the agent to save or find something. ## Install Build from source with the [Rust toolchain](https://rustup.rs/): ```bash git clone https://github.com/fern-demo/livingbrain-cli cd livingbrain-cli cargo build --release ./target/release/livingbrain --help ``` ## Authenticate The CLI reads the same two values as the SDKs. Set them as environment variables, or pass `--api-key` and `--subject-id` on any command: ```bash export LIVING_BRAIN_API_KEY="lb_live_..." export LIVING_BRAIN_SUBJECT_ID="user_123" ``` A `.env` file in the working directory is loaded automatically. To store the key in your OS keyring instead, run `livingbrain auth login`. ## Usage Commands follow the SDK namespaces: `livingbrain `. ```bash livingbrain brains list livingbrain workspace list-pages --brain-id brn_123 livingbrain workspace archive --brain-id brn_123 --slug old-idea livingbrain slack status --brain-id brn_123 ``` Run `livingbrain --help` to see every method and its flags. ## Request bodies Pass request bodies as flags, or as JSON with `--json` (use `-` to read from stdin): ```bash livingbrain captures capture --brain-id brn_123 \ --json '{"kind": "note", "content": "Worth remembering."}' ``` ## Output Output is a table in a terminal and JSON when piped. Override it with `--format` (`json`, `table`, `yaml`, `csv`, `jsonl`), and filter with a JMESPath `--query`: ```bash livingbrain brains list --query '[].name' --format json ``` `--dry-run` prints the request without sending it, which helps when scripting.