CLI Command-Line Tool
Overview
open-note-cli provides a command-line interface for operating notes from the terminal.
Installation
- Option 1: In the desktop app, go to
Settings→CLI Toolsand click Install CLI - Option 2:
pip install open-note-cliVerify Installation
opennote --versionUsage
opennote --helpConfiguration
Using the default database path is recommended and requires no extra configuration.
Change Database Path
To specify a database path, configure it with:
open-note config set-db /path/to/notes.dbOr set an environment variable:
export OPEN_NOTE_DB_PATH=/path/to/notes.dbView Configuration
To view current configuration:
opennote config getCommand Reference
note
Note management command group.
list
List notes.
opennote note listOptions:
| Option | Short | Default | Description |
|---|---|---|---|
--limit | -l | 10 | Maximum number to display |
--category | -c | None | Filter by category |
--favorites | -f | False | Show favorites only |
Examples:
# Show the first 20 items
opennote note list -l 20
# Show only the "Work" category
opennote note list -c Work
# Show favorites only
opennote note list -fshow
View note details.
opennote note show <note_id>Example:
opennote note show abc12345create
Create a note.
opennote note create --title <title> [--content <content>] [--category <category>] [--tags <tags>]Options:
| Option | Short | Default | Description |
|---|---|---|---|
--title | -t | Required | Note title |
--content | -c | None | Note content (opens editor if omitted) |
--category | — | None | Category name |
--tags | — | None | Tags (comma-separated) |
Examples:
# Quick create
opennote note create -t "Meeting Notes" -c "Discussion content..." --category Work --tags "important,todo"
# Open editor
opennote note create -t "Meeting Notes"edit
Edit a note.
opennote note edit <note_id> [--title <new_title>] [--content <new_content>]Options:
| Option | Short | Description |
|---|---|---|
--title | -t | New title |
--content | -c | New content (opens editor with existing content if omitted) |
Examples:
# Change title
opennote note edit abc12345 -t "New Title"
# Open editor to edit
opennote note edit abc12345delete
Delete a note.
opennote note delete <note_id>Example:
opennote note delete abc12345search
Search notes.
opennote note search <keyword> [--limit <number>] [--category <category>]Options:
| Option | Short | Default | Description |
|---|---|---|---|
--limit | -l | 10 | Maximum number of results |
--category | -c | None | Filter by category |
Examples:
# Search
opennote note search "React"
# Search in the "Work" category
opennote note search "meeting" -c Workmcp
MCP service management command group.
start
Start the MCP server.
opennote mcp startNotes:
- Automatically checks whether
open-note-mcpis installed - Asks whether to install automatically if missing
- Keeps running after startup; press Ctrl+C to stop
inspect
View MCP configuration information (static output).
opennote mcp inspectOutput:
- Available MCP tool list
- Database path
config
Configuration management command group.
get
View current configuration.
opennote config getOutput:
- Database path (
db_path)
Automatic Update Check
Each time a command is executed, the CLI automatically checks whether a new version is available and shows a prompt in the terminal.
Troubleshooting
Q: Database not found
Make sure the default database path is used:
opennote config getQ: MCP failed to start
Make sure open-note-mcp is installed:
pip install open-note-mcpQ: Commands are slow
The first execution checks for updates; subsequent executions use cache.