Quickstart#
1. Install Cairn#
curl -sSL https://raw.githubusercontent.com/ndy40/cairn/main/install.sh | sh2. Launch the TUI#
Run cairn with no arguments to open the interactive terminal UI:
cairnTUI Keybindings#
| Key | Action |
|---|---|
↑ / ↓ or j / k | Navigate the bookmark list |
Enter | Open selected bookmark in browser |
/ | Focus search bar |
Ctrl+P | Add a bookmark from the clipboard |
e | Edit tags on selected bookmark |
d or Delete | Delete selected bookmark |
p | Toggle pin on selected bookmark |
t | Open the tag filter overlay |
a | Open the archive view |
F1 or ? | Toggle the help screen |
q or Ctrl+C | Quit |
3. Add a Bookmark (non-interactive)#
cairn add https://go.devAdd with tags (up to 3):
cairn add https://pkg.go.dev --tags "go,reference,docs"Cairn automatically fetches the page title and description.
4. Search#
cairn search golangCombine with JSON output for scripting:
cairn search "rust" --json | jq '.[].url'5. List All Bookmarks#
cairn list
# Newest first (default)
cairn list --order desc
# Oldest first
cairn list --order asc
# As JSON
cairn list --json6. Delete a Bookmark#
# Find the ID first
cairn list
# Then delete by ID
cairn delete 427. Pin a Bookmark#
Pinned bookmarks are marked as permanent and won’t be auto-archived.
cairn pin 42 # toggles pin on/off8. Review and Restore Archived Bookmarks#
Cairn keeps your active list tidy by auto-archiving stale bookmarks: on TUI startup, any bookmark that isn’t pinned is moved to the archive once it is older than 30 days and has been on this device for at least 30 days. Archiving never deletes a bookmark — it just hides it from the main list so you can review or bring it back later.
The second condition matters with sync: a bookmark that arrives from another device keeps its original “added” date, which may be long ago, but it still gets 30 days in your active list on this device before it can be archived.
To browse the archive, launch the TUI and press a:
cairn| Key | Action |
|---|---|
a | Open the archive view (from the main list) |
↑ / ↓ or j / k | Navigate archived bookmarks |
r | Restore the selected bookmark to the main list |
Esc | Return to the main list |
Each archived entry shows its domain and the date it was archived. Pressing r
restores the selected bookmark: it clears the archive flag and date, moves the
bookmark back into your active list, and removes it from the archive view. The
restored bookmark appears in the main list immediately when you press Esc.
To keep a bookmark from being auto-archived in the first place, pin it (see the previous step) — pinned bookmarks are treated as permanent and are never archived. To turn auto-archiving off entirely, see Disable Auto-Archiving.
9. Check Configuration#
cairn configPrints the resolved database path and whether the Dropbox app key is set.
10. Update Cairn#
Check whether a newer version is available:
cairn update --checkApply the update (downloads, verifies checksum, and replaces the binary atomically):
cairn updateUpdate the Vicinae browser extension (if installed):
cairn update --extension11. Uninstall Cairn#
Remove cairn, the Vicinae extension and the desktop app, and keep your bookmarks:
cairn uninstallcairn lists the bookmark and config files it kept, with an rm command to delete them later. To delete them in the same step, add --purge. See Installation → Uninstall for details.
Next Steps#
- Configuration — set a custom DB path or Dropbox key
- Dropbox Sync — sync bookmarks across devices
- Vicinae Extension — save bookmarks from the browser
- Desktop App — search and open bookmarks in an app window you can bring forward from anywhere with a global shortcut