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 [--projects]

Options

OptionDescription
--projectsPrint the projects directory

Examples

Terminal window
notes root
notes root --projects

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

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 projects 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> [--json]

Options

OptionDescription
--path <path>Absolute path to a note file inside the notes vault
--jsonEmit content and revision hash as JSON

Examples

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

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

notes write --path <path> --stdin [--expected-hash <sha256>] [--json]

Options

OptionDescription
--path <path>Absolute path to a note file inside the notes vault
--stdinRead note content from stdin
--expected-hash <sha256>Fail if the existing note no longer has this SHA-256 hash
--jsonEmit the complete mutation result as JSON

Examples

Terminal window
notes write --path ~/Documents/notes/projects/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 complete mutation result as JSON

Examples

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

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

OptionDescription
--allShow notes from every projects directory
--listList handoffs to stdout instead of opening the TUI
--format <labels|json>Output format (one of: labels, json)

Examples

Terminal window
notes handoffs
notes handoffs --all
notes handoffs --list
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

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

OptionDescription
--config <path>Daemon YAML configuration path
--onceProcess one queue snapshot and exit

Examples

Terminal window
notes daemon --config ~/.config/notes/daemon.yml
notes daemon --config ~/.config/notes/daemon.yml --once

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, daemon, completions.

Examples

Terminal window
notes help
notes help list