Documentation Index
Fetch the complete documentation index at: https://mintlify.com/xwmx/nb/llms.txt
Use this file to discover all available pages before exploring further.
nb is designed to feel natural from the first command. The interface is consistent across every operation — add, list, edit, show, search — and most commands have short aliases so common tasks stay fast. This guide walks you through everything you need to go from zero to productive in a single session.
Install nb
The quickest way to get For additional methods including
nb running is via Homebrew on macOS or npm everywhere else:curl, wget, and make, see the Installation guide.Run nb for the first time
Simply run On first run,
nb with no arguments:nb creates your home notebook at ~/.nb/home/ and initializes it as a Git repository. From that point on, every change you make is automatically committed to local version history.Notebooks and notes are global by default — they live at
~/.nb and are accessible from any working directory.Add your first note
Use When you add a note with content, You can also pipe content directly into
nb add (shortcut: nb a) to create notes in several ways:nb confirms immediately:nb add:List your notes
Running Each note is shown with its id, filename (or title when one is defined), and a content excerpt. Notes are listed in order of last modification.
nb or nb ls lists everything in the current notebook:Edit a note
Use
nb edit (shortcut: nb e) followed by an id, filename, or title:nb opens the note in your $EDITOR. After you save and close, the change is automatically committed to Git.View a note
Use
nb show (shortcut: nb s) to inspect a note:nb show renders Markdown with syntax highlighting when bat or another supported viewer is installed.Search your notes
Use Example output:You can also search by tag:
nb search (shortcut: nb q) to run a full-text search across all notes and cached bookmark content:Save a bookmark
Pass any URL as the first argument to The cached content is indexed for full-text search with
nb to create a bookmark:nb fetches the page, extracts the title, description, and content, and saves everything as a structured Markdown file:nb q, viewable in a local browser with nb browse, and readable in any text editor like any other note.Shortcut Aliases Reference
nb provides short aliases for the most common commands. Once you learn them, day-to-day note-taking becomes a single keystroke:
| Shortcut | Full command | What it does |
|---|---|---|
nb a | nb add | Add a new note or file |
nb e | nb edit | Edit a note in $EDITOR |
nb s | nb show | View / print a note |
nb d | nb delete | Delete a note |
nb q | nb search | Full-text search |
nb b | nb browse | Browse in web interface |
nb o | nb open | Open bookmarked URL in browser |
nb p | nb peek | Preview bookmarked URL in terminal browser |
What’s Next
Notes
Deep-dive into creating, organizing, tagging, linking, and managing notes with all available options.
Bookmarks
Learn how to save, annotate, search, and browse bookmarks including encrypted and tagged collections.
Reference Overview
Complete reference for every
nb subcommand, flag, and selector syntax.Configuration
Customize
nb with settings for your editor, default format, color theme, sync behavior, and more.