Quickstart#

1. Install Cairn#

curl -sSL https://raw.githubusercontent.com/ndy40/cairn/main/install.sh | sh

2. Launch the TUI#

Run cairn with no arguments to open the interactive terminal UI:

cairn

TUI Keybindings#

KeyAction
↑ / ↓ or j / kNavigate the bookmark list
EnterOpen selected bookmark in browser
/Focus search bar
Ctrl+PAdd a bookmark from the clipboard
eEdit tags on selected bookmark
d or DeleteDelete selected bookmark
pToggle pin on selected bookmark
tOpen the tag filter overlay
aOpen the archive view
F1 or ?Toggle the help screen
q or Ctrl+CQuit

3. Add a Bookmark (non-interactive)#

cairn add https://go.dev

Add with tags (up to 3):

cairn add https://pkg.go.dev --tags "go,reference,docs"

Cairn automatically fetches the page title and description.

cairn search golang

Combine 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 --json

6. Delete a Bookmark#

# Find the ID first
cairn list

# Then delete by ID
cairn delete 42

7. Pin a Bookmark#

Pinned bookmarks are marked as permanent and won’t be auto-archived.

cairn pin 42   # toggles pin on/off

8. 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
KeyAction
aOpen the archive view (from the main list)
↑ / ↓ or j / kNavigate archived bookmarks
rRestore the selected bookmark to the main list
EscReturn 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 config

Prints the resolved database path and whether the Dropbox app key is set.

10. Update Cairn#

Check whether a newer version is available:

cairn update --check

Apply the update (downloads, verifies checksum, and replaces the binary atomically):

cairn update

Update the Vicinae browser extension (if installed):

cairn update --extension

11. Uninstall Cairn#

Remove cairn, the Vicinae extension and the desktop app, and keep your bookmarks:

cairn uninstall

cairn 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