Skip to content

Command Reference

This page lists every notes command, generated from the same registry that powers notes help.

Print the notes vault root

notes root [--repo-notes]

Options

OptionDescription
--repo-notesPrint the repository notes directory

Examples

Terminal window
notes root
notes root --repo-notes

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

OptionDescription
--command <name>Integration command name requesting context
--jsonEmit structured context JSON

Examples

Terminal window
notes context --command notes-list
notes context --command note-reference --json

List repository notes

notes list [--all] [--tag <tag>] [--format labels|json]

Options

OptionDescription
--allShow notes from every repo-notes directory
--tag <tag>Only include notes with this tag
--format <labels|json>Output format (one of: labels, json)

Examples

Terminal window
notes list
notes list --all
notes list --tag handoff
notes list --format json

Print a note file

notes read --path <path>

Options

OptionDescription
--path <path>Absolute path to a note file inside the notes vault

Examples

Terminal window
notes read --path ~/Documents/notes/repo-notes/owner/repo/topic.md

Write stdin to a note file, then commit and push it

notes write --path <path> --stdin [--json]

Options

OptionDescription
--path <path>Absolute path to a note file inside the notes vault
--stdinRead note content from stdin
--jsonEmit the note output and push status as JSON

Examples

Terminal window
notes write --path ~/Documents/notes/repo-notes/owner/repo/topic.md --stdin

Delete a note file, then commit and push it

notes delete --path <path> [--json]

Options

OptionDescription
--path <path>Absolute path to a note file inside the notes vault
--jsonEmit the note output and push status as JSON

Examples

Terminal window
notes delete --path ~/Documents/notes/repo-notes/owner/repo/topic.md

List handoff-tagged notes

notes handoffs [--all] [--format labels|json]

Handoffs are normal notes tagged handoff, with optional priority metadata.

Options

OptionDescription
--allShow notes from every repo-notes directory
--format <labels|json>Output format (one of: labels, json)

Examples

Terminal window
notes handoffs
notes handoffs --all
notes handoff

Run the notes MCP server over stdio

notes mcp

Start a Model Context Protocol server exposing note read, list, write, and delete tools.

Examples

Terminal window
notes mcp

Generate shell completions

notes completions [bash|fish|zsh]

Generate shell completions for notes.

Arguments

ArgumentDescription
<shell>One of: bash, fish, zsh.

Examples

Terminal window
notes completions zsh
notes completions bash
notes completions fish

Show notes help

notes help [command]

Arguments

ArgumentDescription
<command>Optional command to show help for. One of: root, context, list, read, write, delete, handoffs, mcp, completions.

Examples

Terminal window
notes help
notes help list