CLI
The NeuralRepo CLI (nrepo) lets you capture and manage ideas without leaving your terminal. It is fast, scriptable, and works seamlessly with developer workflows — including Claude Code.
Why Use the CLI?
Section titled “Why Use the CLI?”- Fast capture — push an idea in a single command, no context switching
- Scriptable — pipe output, use in shell scripts, integrate with CI/CD
- Works with Claude Code — Claude Code can invoke
nrepocommands directly in your development workflow - JSON output — parse results programmatically for automations
Installation
Section titled “Installation”Install the CLI globally via npm:
npm install -g @neuralconfig/nrepoVerify the installation:
nrepo --versionAuthentication
Section titled “Authentication”Log in using your browser — this is the easiest method:
nrepo loginYour browser opens for authentication. Once approved, credentials are stored in ~/.config/neuralrepo/config.json.
For headless environments, CI/CD, or scripting, use an API key:
nrepo login --api-key nrp_your_api_key_hereGenerate an API key in Settings > API Keys on the web dashboard. API keys use the format nrp_ followed by 64 hexadecimal characters.
Quick Push
Section titled “Quick Push”Capture an idea in a single command:
nrepo push "Build a habit tracker app" --body "Mobile-first, with streak tracking and reminders" --tag side-project --status exploringAll flags are optional except the title (the first positional argument):
| Flag | Short | Description | Default |
|---|---|---|---|
--body | -b | Idea body text | (empty) |
--tag | -t | Add a tag (repeatable) | (none) |
--status | -s | Set initial status | captured |
--json | Force JSON output | (see below) | |
--human | Force human-readable output | (see below) |
Example with multiple tags
Section titled “Example with multiple tags”nrepo push "AI-powered code review tool" \ --tag ai \ --tag devtools \ --tag saas \ --status exploringOutput Modes
Section titled “Output Modes”The CLI supports two output modes:
| Mode | When Used | Format |
|---|---|---|
| Human-readable | Default when authenticated via OAuth | Formatted text with labels |
| JSON | Default when authenticated via API key | Machine-parseable JSON |
You can override the default with --json or --human on any command:
# Force JSON output (useful for scripting)nrepo push "My idea" --json
# Force human-readable output (useful with API key auth)nrepo search "tracker" --humanHuman-readable output
Section titled “Human-readable output”Idea created successfully ID: 42 Title: AI-powered code review tool Status: exploring Tags: ai, devtools, saasJSON output
Section titled “JSON output”{ "id": 42, "title": "AI-powered code review tool", "status": "exploring", "tags": ["ai", "devtools", "saas"], "source": "cli", "processing": true, "created_at": "2026-03-24T10:30:00Z"}Common Commands
Section titled “Common Commands”# Search ideasnrepo search "habit tracker"
# List recent ideasnrepo log
# View a specific ideanrepo show 42
# Change an idea's statusnrepo move 42 building
# Delete an ideanrepo rm 42Configuration
Section titled “Configuration”The CLI stores its configuration at:
~/.config/neuralrepo/config.jsonThis file contains your authentication credentials (OAuth token or API key). Do not share it or commit it to version control.