Fold
Download for Mac

CLI

Save, search and export your library from the terminal, or script Fold in your own tools.

Install

The CLI needs Node.js 20 or later and runs on Mac, Linux and Windows.

Terminal
$ npm i -g @fold/cli$ fold --version

Sign in

Sign in once and the CLI keeps a token in your system keychain.

Terminal
$ fold login# Opens your browser to approve the CLI$ fold whoamimaya@example.com · Pro

For scripts and CI, create a token in Fold under Settings → Developers and set it as FOLD_TOKEN. The CLI uses it instead of the keychain.

CI
$ export FOLD_TOKEN=fold_pat_xxxxxxxxxxxx$ fold search "release notes" --json

Saving

fold save <url>

Save a link. Fold fetches the reader copy, summary and transcript in the background.

Example
$ fold save https://harbourreview.net/essays/quiet-economics --collection "Long reads" --tag attentionSaved "The quiet economics of attention" → Long reads

fold import <file>

Import a browser bookmarks export, a reading-list CSV or a plain list of URLs.

Example
$ fold import ~/Downloads/bookmarks.htmlImported 412 links · 9 skipped (duplicates)

Finding

fold search <query>

Search titles, reader copies, highlights and transcripts. Filter by kind or collection.

Example
$ fold search "resonance" --kind video,article --limit 5

fold ask <question>

Ask a question across your library and get an answer with its sources.

Example
$ fold ask "What have I saved about attention?" --sources

Reading

fold get <id>

Print a save as Markdown, plain text or JSON, with its summary or transcript.

Example
$ fold get sv_8fk2 --format md --transcript > tides.md

fold open <id>

Open a save in the Fold app, or in your browser with --web.

Example
$ fold open sv_8fk2

Organising

fold collections

List, create and fill collections.

Example
$ fold collections ls$ fold collections create "To cite"$ fold collections add "To cite" sv_8fk2 sv_3m9a

fold tag <id> <tags…>

Add tags to a save. Prefix a tag with - to remove it.

Example
$ fold tag sv_8fk2 science -inbox

Highlights and export

fold highlights

List highlights and notes, newest first.

Example
$ fold highlights --since 2026-11-01 --json

fold export

Export saves, highlights and notes as Markdown, CSV or JSON.

Example
$ fold export --format md --out ~/Notes/Fold

Global flags

FlagWhat it does
--jsonPrint machine-readable JSON instead of a table.
--profile <name>Use a different signed-in account.
--quietPrint only IDs, one per line, for piping.
--helpShow help for any command.
CLI calls count towards the same daily limit as MCP and the API on the free plan: 500 a day. Pro has no daily limit.