bear-notes

Create, search, and manage Bear notes via grizzly CLI.40

Bear Notes

Use grizzly to create, read, and manage notes in Bear on macOS.

Requirements

  • Bear app installed and running
  • For some operations (add-text, tags, open-note --selected), a Bear app token (stored in ~/.config/grizzly/token)

Getting a Bear Token

For operations that require a token (add-text, tags, open-note --selected), you need an authentication token:

  1. Open Bear → Help → API Token → Copy Token
  2. Save it: echo "YOUR_TOKEN" > ~/.config/grizzly/token

Common Commands

Create a note

Open/read a note by ID

Append text to a note

List all tags

Search notes (via open-tag)

Options

Common flags:

  • --dry-run — Preview the URL without executing
  • --print-url — Show the x-callback-url
  • --enable-callback — Wait for Bear's response (needed for reading data)
  • --json — Output as JSON (when using callbacks)
  • --token-file PATH — Path to Bear API token file

Configuration

Grizzly reads config from (in priority order):

  1. CLI flags
  2. Environment variables (GRIZZLY_TOKEN_FILE, GRIZZLY_CALLBACK_URL, GRIZZLY_TIMEOUT)
  3. .grizzly.toml in current directory
  4. ~/.config/grizzly/config.toml

Example ~/.config/grizzly/config.toml:

Notes

  • Bear must be running for commands to work
  • Note IDs are Bear's internal identifiers (visible in note info or via callbacks)
  • Use --enable-callback when you need to read data back from Bear
  • Some operations require a valid token (add-text, tags, open-note --selected)