Skip to main content

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 a single portable Bash script that provides a full-featured command-line interface for note-taking, bookmarking, and archiving. Every capability is exposed through named subcommands, each with its own help text and shortcut aliases. This page maps the entire command surface so you can find what you need quickly.

Getting Help

nb has built-in help at every level. Run any of the following to get documentation without leaving your terminal:
# Display the full help overview
nb help

# View help for a specific subcommand
nb help add
nb help search
nb help notebooks

# Shortcut: h is an alias for help
nb h add

# Print help text to stdout (instead of the pager)
nb help add --print

# View the full README
nb help --readme

# View color theme information
nb help --colors
nb -h and nb --help are equivalent to nb help and display the same program-level help text.

Program-Level Options

These flags are passed directly to nb before any subcommand and affect global behavior:
FlagDescription
-h, --helpDisplay help information
-i, --interactiveStart the nb interactive shell
--no-colorPrint all output without color highlighting
--versionDisplay version information
# Start the interactive nb shell
nb -i

# Run nb without color (useful for piping output)
nb --no-color ls

# Print version
nb --version

Notebook Selector Syntax

Every subcommand that accepts an item identifier also accepts an optional notebook prefix. This lets you operate across notebooks without switching your active notebook:
# General pattern
nb <notebook>:[<subcommand>] [<identifier>] [<options>...]
nb <subcommand> <notebook>:<identifier> [<options>...]

# Examples
nb example:ls                   # list items in "example" notebook
nb example:add -t "New Note"    # add a note to "example"
nb example:show 12              # show item 12 in "example"
nb search "query" example:      # search within "example"
Identifiers inside the selector can be a numeric ID, a filename, a title, or a folder path:
nb work:3                       # item 3 in "work" notebook
nb work:notes/report.md         # path-based selector
nb work:"Project Plan"          # title-based selector

All Subcommands

Run nb help <subcommand> for the full usage, options, and examples for any command listed below.
SubcommandDescription
addAdd a note, folder, or file
archiveArchive the current or specified notebook
bookmarkAdd, open, list, and search bookmarks
browseBrowse and manage linked items in terminal and GUI web browsers
completionsInstall and uninstall shell completion scripts
copyCopy or duplicate an item
countPrint the number of items in a notebook or folder
deleteDelete a note
doMark a todo or task as done
editEdit a note
envPrint environment information and install dependencies
exportExport a note to a variety of different formats
foldersAdd, delete, and list folders
gitRun git commands within the current notebook
helpView help information for the program or a subcommand
historyView git history for the current notebook or a note
importImport a file into the current notebook
initInitialize the first notebook
listList notes in the current notebook
lsList notebooks and notes in the current notebook
moveMove or rename a note
notebooksManage notebooks
openOpen a bookmarked web page or notebook folder, or edit a note
peekView a note, bookmarked web page, or notebook in the terminal
pinPin an item so it appears first in lists
pluginsInstall and uninstall plugins and themes
remoteConfigure the remote URL and branch for the notebook
runRun shell commands within the current notebook
searchSearch notes
settingsEdit configuration settings
shellStart the nb interactive shell
showShow a note or notebook
statusPrint notebook status information
subcommandsList, add, alias, and describe subcommands
syncSync local notebook with the remote repository
tasksList tasks in todos, notebooks, folders, and other items
todoManage todos and tasks
unarchiveUnarchive the current or specified notebook
undoMark a todo or task as not done
unpinUnpin a pinned item
unsetReturn a setting to its default value
updateUpdate nb to the latest version
useSwitch to a notebook
versionDisplay version information

Shortcut Aliases

Many subcommands have single-character or symbolic shortcuts for fast interactive use:
ShortcutFull SubcommandExample
aaddnb a "Note content."
+addnb + --title "Example Title"
bbrowsenb b sample/
ddeletenb d 19
-deletenb - example:123
eeditnb e 5
hhelpnb h add
oopennb o 12
ppeeknb p 6
qsearchnb q "example query"
sshownb s 27
uusenb u example-notebook
Additional aliases available for specific subcommands:
ShortcutSubcommand
n, nbnotebooks
ararchive
unarunarchive
bk, bmbookmark
ffolders
iimport
mvmove
ststatus
ttasks
totodo

Detail Pages

nb add

Create notes, bookmarks, todos, and folders with full option coverage

edit / show / delete

Open notes in your editor, print or render content, and remove items

nb search

Full-text search with AND/OR/NOT logic, tags, types, and regex

nb notebooks

Create, rename, archive, and sync multiple note collections

Build docs developers (and LLMs) love