neemee-cli
v0.3.2
Published
Command-line client for the Neemee notes API
Readme
neemee-cli
Command-line client for the Neemee notes API.
Install
npm install -g neemee-cliRequires Node.js 18+.
Setup
Generate an API key at neemee.app/settings → API Keys (select read and/or write scopes). The CLI looks for a key in this order:
NEEMEE_API_KEYenvironment variable (recommended for shells/scripts/CI)~/.config/neemee/config.json(set vianeemee config set-key)
Option 1 — environment variable (add to ~/.zshrc or ~/.bashrc):
export NEEMEE_API_KEY="your-api-key-here"
# Optional: override base URL (default: https://neemee.app)
# export NEEMEE_BASE_URL="http://localhost:3100"Option 2 — config file:
neemee config set-key <your-api-key>Then verify:
neemee config whoamiCommands
Notes
neemee notes list [--search <q>] [--notebook <id>] [--limit 20] [--page 1]
neemee notes get <id>
neemee notes create --content "My note content" [--title "Title"] [--url <url>] [--notebook <id>]
neemee notes update <id> --content "Updated content" [--title "..."] [--url <...>] [--notebook <id|none>]
neemee notes delete <id>Note:
notes updaterequires--content— the REST API treatscontentas mandatory on PUT even for a title-only edit.
Notebooks
neemee notebooks list [--search <q>] [--limit 20] [--page 1]
neemee notebooks get <id>
neemee notebooks create --name "My notebook" [--description "..."]
neemee notebooks update <id> [--name "..."] [--description "..."]
neemee notebooks delete <id>Search
Shortcut for notes list --search:
neemee search "<query>"Searches across content, note title, URL, source domain, notebook name, and frontmatter values. To search notebooks instead, use neemee notebooks list --search "<query>".
Frontmatter format guide
neemee frontmatter-guide [--type basic|research|task|article]Prints a reference guide with examples for the YAML frontmatter format Neemee uses on notes.
Configuration
neemee config set-key <key> # Store your API key
neemee config set-url <url> # Override base URL (default: https://neemee.app)
neemee config show # Show current config (key masked)
neemee config whoami # Verify key and show user infoConfig is stored at ~/.config/neemee/config.json.
Scopes
API keys have one or more scopes that control access:
| Scope | Access |
| ------ | --------------------------------------------------------- |
| read | GET endpoints only |
| write| POST, PUT, DELETE + all read operations |
| admin| All operations (future use) |
Development
npm install
npm run build
node dist/index.js --helpFor local development against a Neemee instance running on a non-default port:
neemee config set-url http://localhost:3100API Reference
Full REST API documentation: neemee-frontend/docs/api/REST_API.md
License
MIT
