Documentation
Commands
Reference for snippet, attachment, auth, and storage commands
CLI Commands Reference
Profile
cache init
Create direct sqlite profile.
bash
cache init
cache init --name work --database /absolute/path/to/work.sqlitecache profile list
bash
cache profile listcache profile use <name>
bash
cache profile use localAuth
cache auth login
Remote profile login. Uses browser flow in interactive TTY, or manual token flags.
bash
cache auth login --name server --base-url http://localhost:3000
cache auth login --name server --base-url http://localhost:3000 --token <token>cache auth whoami
bash
cache auth whoamicache auth logout
bash
cache auth logoutSnippets
Create
bash
cache add ./file.ts --title "Example" --tag typescript
cache snippet create ./file.ts --title "Example" --tag typescriptSearch
bash
cache search auth
cache snippet list auth --tags api,typescriptGet
bash
cache get <snippet-id>
cache snippet get <snippet-id>Update
bash
cache snippet update <snippet-id> ./updated.ts --title "Updated title"Delete
bash
cache rm <snippet-id>
cache snippet delete <snippet-id>Attachments
Add
bash
cache attachment add <snippet-id> ./notes.mdList
bash
cache attachment list <snippet-id>Download
bash
cache attachment get <attachment-id> --output ./notes.mdDelete
bash
cache attachment delete <attachment-id>Storage
bash
cache storage get
cache storage set sqlite
cache storage validateOnly sqlite supported in direct mode.
Output
bash
cache profile list --format human
cache profile list --format json
cache search auth --format jsonl