Command Reference
This page lists every notes command, generated from the same registry that powers notes help.
notes root
Section titled “notes root”Print the notes vault root
notes root [--projects]Options
| Option | Description |
|---|---|
--projects | Print the projects directory |
Examples
notes rootnotes root --projectsnotes context
Section titled “notes context”Print project-note context for integration plugins
notes context --command <name> [--json]Resolve the current project, its notes directory, and relevant existing notes. The —json form is intended for OpenCode plugins that render their own prompt context.
Options
| Option | Description |
|---|---|
--command <name> | Integration command name requesting context |
--json | Emit structured context JSON |
Examples
notes context --command notes-listnotes context --command note-reference --jsonnotes list
Section titled “notes list”List repository notes
notes list [--all] [--tag <tag>] [--format labels|json]Options
| Option | Description |
|---|---|
--all | Show notes from every projects directory |
--tag <tag> | Only include notes with this tag |
--format <labels|json> | Output format (one of: labels, json) |
Examples
notes listnotes list --allnotes list --tag handoffnotes list --format jsonnotes read
Section titled “notes read”Print a note file
notes read --path <path> [--json]Options
| Option | Description |
|---|---|
--path <path> | Absolute path to a note file inside the notes vault |
--json | Emit content and revision hash as JSON |
Examples
notes read --path ~/Documents/notes/projects/owner/repo/topic.mdnotes write
Section titled “notes write”Write stdin to a note file, then commit and push it
notes write --path <path> --stdin [--expected-hash <sha256>] [--json]Options
| Option | Description |
|---|---|
--path <path> | Absolute path to a note file inside the notes vault |
--stdin | Read note content from stdin |
--expected-hash <sha256> | Fail if the existing note no longer has this SHA-256 hash |
--json | Emit the complete mutation result as JSON |
Examples
notes write --path ~/Documents/notes/projects/owner/repo/topic.md --stdinnotes delete
Section titled “notes delete”Delete a note file, then commit and push it
notes delete --path <path> [--json]Options
| Option | Description |
|---|---|
--path <path> | Absolute path to a note file inside the notes vault |
--json | Emit the complete mutation result as JSON |
Examples
notes delete --path ~/Documents/notes/projects/owner/repo/topic.mdnotes handoffs
Section titled “notes handoffs”Browse handoff-tagged notes
notes handoffs [--all] [--list] [--format labels|json]Handoffs are normal notes tagged handoff. Priority metadata is shared with notes. With no flags this opens the interactive notes TUI filtered to handoffs.
Options
| Option | Description |
|---|---|
--all | Show notes from every projects directory |
--list | List handoffs to stdout instead of opening the TUI |
--format <labels|json> | Output format (one of: labels, json) |
Examples
notes handoffsnotes handoffs --allnotes handoffs --listnotes handoffnotes mcp
Section titled “notes mcp”Run the notes MCP server over stdio
notes mcpStart a Model Context Protocol server exposing note read, list, write, and delete tools.
Examples
notes mcpnotes daemon
Section titled “notes daemon”Process captured notes through local OpenCode
notes daemon --config <path> [--once]Poll a configured GitHub issue queue, claim work through custom Git refs, and post local OpenCode results. The OpenCode server password is read from OPENCODE_SERVER_PASSWORD.
Options
| Option | Description |
|---|---|
--config <path> | Daemon YAML configuration path |
--once | Process one queue snapshot and exit |
Examples
notes daemon --config ~/.config/notes/daemon.ymlnotes daemon --config ~/.config/notes/daemon.yml --oncenotes completions
Section titled “notes completions”Generate shell completions
notes completions [bash|fish|zsh]Generate shell completions for notes.
Arguments
| Argument | Description |
|---|---|
<shell> | One of: bash, fish, zsh. |
Examples
notes completions zshnotes completions bashnotes completions fishnotes help
Section titled “notes help”Show notes help
notes help [command]Arguments
| Argument | Description |
|---|---|
<command> | Optional command to show help for. One of: root, context, list, read, write, delete, handoffs, mcp, daemon, completions. |
Examples
notes helpnotes help list