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 [--repo-notes]Options
| Option | Description |
|---|---|
--repo-notes | Print the repository notes directory |
Examples
notes rootnotes root --repo-notesnotes context
Section titled “notes context”Print repo-note context for integration plugins
notes context --command <name> [--json]Resolve the current repository, 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 repo-notes 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>Options
| Option | Description |
|---|---|
--path <path> | Absolute path to a note file inside the notes vault |
Examples
notes read --path ~/Documents/notes/repo-notes/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 [--json]Options
| Option | Description |
|---|---|
--path <path> | Absolute path to a note file inside the notes vault |
--stdin | Read note content from stdin |
--json | Emit the note output and push status as JSON |
Examples
notes write --path ~/Documents/notes/repo-notes/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 note output and push status as JSON |
Examples
notes delete --path ~/Documents/notes/repo-notes/owner/repo/topic.mdnotes handoffs
Section titled “notes handoffs”List handoff-tagged notes
notes handoffs [--all] [--format labels|json]Handoffs are normal notes tagged handoff, with optional priority metadata.
Options
| Option | Description |
|---|---|
--all | Show notes from every repo-notes directory |
--format <labels|json> | Output format (one of: labels, json) |
Examples
notes handoffsnotes handoffs --allnotes 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 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, completions. |
Examples
notes helpnotes help list