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.
$ npm i -g @fold/cli$ fold --versionSign in
Sign in once and the CLI keeps a token in your system keychain.
$ fold login# Opens your browser to approve the CLI$ fold whoamimaya@example.com · ProFor 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.
$ export FOLD_TOKEN=fold_pat_xxxxxxxxxxxx$ fold search "release notes" --jsonSaving
fold save <url>
Save a link. Fold fetches the reader copy, summary and transcript in the background.
$ fold save https://harbourreview.net/essays/quiet-economics --collection "Long reads" --tag attentionSaved "The quiet economics of attention" → Long readsfold import <file>
Import a browser bookmarks export, a reading-list CSV or a plain list of URLs.
$ 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.
$ fold search "resonance" --kind video,article --limit 5fold ask <question>
Ask a question across your library and get an answer with its sources.
$ fold ask "What have I saved about attention?" --sourcesReading
fold get <id>
Print a save as Markdown, plain text or JSON, with its summary or transcript.
$ fold get sv_8fk2 --format md --transcript > tides.mdfold open <id>
Open a save in the Fold app, or in your browser with --web.
$ fold open sv_8fk2Organising
fold collections
List, create and fill collections.
$ fold collections ls$ fold collections create "To cite"$ fold collections add "To cite" sv_8fk2 sv_3m9afold tag <id> <tags…>
Add tags to a save. Prefix a tag with - to remove it.
$ fold tag sv_8fk2 science -inboxHighlights and export
fold highlights
List highlights and notes, newest first.
$ fold highlights --since 2026-11-01 --jsonfold export
Export saves, highlights and notes as Markdown, CSV or JSON.
$ fold export --format md --out ~/Notes/FoldGlobal flags
| Flag | What it does |
|---|---|
--json | Print machine-readable JSON instead of a table. |
--profile <name> | Use a different signed-in account. |
--quiet | Print only IDs, one per line, for piping. |
--help | Show help for any command. |