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 |
a | Add a new bookmark |
d | Delete selected bookmark |
p | Toggle pin on selected bookmark |
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. Check Configuration#
cairn configPrints the resolved database path and whether the Dropbox app key is set.
9. 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 --extensionNext Steps#
- Configuration — set a custom DB path or Dropbox key
- Dropbox Sync — sync bookmarks across devices
- Vicinae Extension — save bookmarks from the browser