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 bookmark (shortcut aliases: nb bk, nb bm) is a full-featured bookmarking system built into nb. Bookmarks are stored as structured Markdown files (.bookmark.md) that automatically capture the page title, description, and full content — making them fully searchable offline. You can annotate them with quotes, comments, related links, and tags, then browse or open them at any time.
Usage
Creating Bookmarks
The quickest way to bookmark a URL is to pass it directly tonb:
nb fetches the page, extracts the title and description, converts the HTML to Markdown (when Pandoc is available), and saves everything in a .bookmark.md file. If readability-cli is installed, the markup is cleaned up to focus on content. When Chromium or Chrome is present, JavaScript-dependent pages are automatically rendered before saving.
URLs with special characters can be enclosed in quotes:
Bookmarking Multiple URLs
Pass multiple URLs to bookmark them all at once. Additional options are applied to each:Options
Add a comment or description in a
## Comment section.Add a quote or excerpt from the page in a
## Quote section. Alias: --excerpt.Add comma-separated tags as
#hashtags in a ## Tags section.Override the bookmark title. When not specified,
nb uses the HTML <title> tag.Add a related URL or
nb selector to a ## Related section. Use multiple times to add multiple items.Encrypt the bookmark with a password (AES-256 via OpenSSL by default, or GPG if configured).
Set the filename for the bookmark. Omit the extension to use the default
.bookmark.md.Do not fetch or download the target page. Creates a minimal bookmark with only the URL.
Save the page’s raw HTML source in addition to the converted Markdown content.
Open the bookmark in
$EDITOR before saving, allowing manual edits to the generated file.Bookmark File Format
Bookmarks are plain Markdown files with a.bookmark.md extension. Here is the structure nb generates:
The bookmark URL must appear as the first URL in the file, wrapped in
< and > characters. To create a minimal valid bookmark manually:Subcommands
list
List all bookmarks in the current notebook:nb bookmark command (no subcommand) also lists bookmarks:
nb and nb ls. Use --type bookmark or --bookmark to filter:
open
Open the bookmarked URL in the system’s primary web browser:peek
Open the bookmarked URL in your terminal web browser (w3m, Links, or Lynx):nb open and nb peek work with encrypted bookmarks — nb will prompt for the password. Both commands also automatically check if the URL is still valid and can fall back to the Internet Archive Wayback Machine for archived copies.
url
Print the URL stored in a bookmark without opening it:edit
Open a bookmark file in$EDITOR:
delete
Delete a bookmark:search
Perform a full-text search of bookmarks, including archived page content:Searching with Tags
Search for tagged bookmarks withnb search:
Examples
Shortcut Aliases
nb bk
Shortcut alias for
nb bookmarknb bm
Additional shortcut alias for
nb bookmarknb o
Shortcut for
nb opennb b is the shortcut alias for nb browse, not nb bookmark. Use nb bk or nb bm as shortcuts for the bookmark subcommand.The bookmark Standalone Command
bookmark is a standalone command installed alongside nb that is a direct shortcut for nb bookmark. It accepts all the same subcommands and options:
bookmark help.