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 treats your notebook as a general-purpose file container, not just a home for Markdown text. You can pull in images, PDFs, Office documents, videos, audio files, and entire browser bookmark collections with a single command. When you need to share a note externally, nb export can write it out as-is or hand it to Pandoc for conversion to virtually any document format — all without leaving the terminal.
Importing Files
Usenb import (shortcut: nb i) to copy files into the current notebook:
Importing Multiple Files
Multiple filenames and glob patterns are supported in a single command:Importing from a URL
nb import can download and import files directly from the web:
Copy vs Move
By default,nb import copies files into the notebook and leaves the originals in place. Use the explicit subcommands to control this behavior:
Importing Bookmarks from a Browser
Bookmark files exported from Chrome, Firefox, and Edge can be imported withnb import bookmarks. nb creates one .bookmark.md file for each URL in the export:
Converting on Import
Pass--convert to have nb convert imported HTML content to Markdown during import. This is useful for pulling a downloaded web page or HTML file into your Markdown-based workflow:
--convert converts HTML content to Markdown. It does not convert other formats such as DOCX. Pandoc must be installed.File Type Indicators
Imported files are shown with emoji indicators in the notebook list so you can identify them at a glance:Importing Notebooks
An entire local folder or notebook can be imported to make it a globalnb notebook:
nb notebooks import.
Exporting Files
Usenb export to write a note or file out of the notebook to a destination path. When the destination path has a different file extension than the source, nb automatically invokes Pandoc to convert the file:
Exporting with Full Pandoc Control
For fine-grained control over Pandoc options, use thenb export pandoc subcommand. It passes all additional arguments directly to Pandoc and prints to standard output by default:
Supported Output Formats
Becausenb export delegates conversion to Pandoc, any format that Pandoc supports is available. Common targets include:
DOCX
Microsoft Word — great for sharing with collaborators.
Portable document — requires a LaTeX engine or
wkhtmltopdf.HTML
Web page output suitable for publishing.
ePub
E-book format for readers and distribution.
ODT
OpenDocument Text for LibreOffice and OpenOffice.
RTF / LaTeX
Rich Text Format or raw LaTeX source.
Exporting a Whole Notebook
Export an entire notebook to a directory on disk:nb notebooks export.
Exporting via the Browser Interface
Items can also be exported throughnb browse. Open any item page in the terminal or GUI browser and use the down-arrow (↓) download link to save the original file: