mirror of
https://github.com/hanzoskill/instapaper.git
synced 2026-10-30 21:03:42 +00:00
2.8 KiB
2.8 KiB
Commands (examples)
Install/build
- Build from repo:
go build ./cmd/ip - Run local binary:
./ip ... - If installed:
ip ...
Auth and config
- Login (stdin password):
printf '%s' "pass" | ip auth login --username "[email protected]" --password-stdin- Add
--no-inputto disable prompts.
- Check auth:
ip auth statusorip --json auth status
- Config:
ip config pathip config showip config get defaults.list_limitip config set defaults.list_limit 100ip config unset defaults.resolve_final_url
List
- Basic:
ip list --folder unread --limit 25ip list --folder archive --jsonip list --ndjson
- Select fields:
ip list --fields "bookmark_id,title,url" --ndjson
- Incremental:
ip list --cursor ~/.config/ip/cursor.jsonip list --cursor-dir ~/.config/ip/cursorsip list --since bookmark_id:12345ip list --until time:2025-01-01T00:00:00Zip list --updated-since 2025-01-01T00:00:00Z
- Filter client-side:
ip list --select "starred=1,tag~news"
Add
- Add URL:
ip add https://example.com/article --title "Example" --tags "go,readlater" --folder unread
- Add from stdin:
cat urls.txt | ip add -
Export/import
- Export (default ndjson):
ip export --cursor ~/.config/ip/cursor.jsonip export --cursor-dir ~/.config/ip/cursorsip export --fields "bookmark_id,title,url" --ndjsonip export --output-dir ./exports --cursor-dir ~/.config/ip/cursors
- Import:
ip import --input urls.txt --input-format plainip import --input bookmarks.ndjson --input-format ndjson --progress-json
Mutations
- Archive/star/move:
ip archive 123456ip unarchive 123456ip star 123456ip unstar 123456ip move --folder "Work" 123456
- Delete (requires confirmation):
ip delete 123456 --yes-really-deleteip delete 123456 --confirm 123456
- Bulk:
ip archive --ids 1,2,3printf "10\n11\n12\n" | ip unarchive --stdinip archive --ids 1,2,3 --batch 2
- Safe modes:
ip --dry-run archive 123456ip --idempotent highlights add 123456 --text "Some quote"
Text view
ip text 123456 --out article.htmlip text 123456 --out article.html --openprintf "1\n2\n3\n" | ip text --stdin --out ./articles
Progress
ip progress 123456 --progress 0.5 --timestamp 1700000000
Folders
ip folders listip folders add "New Folder"ip folders delete "New Folder" --yes- Reorder:
ip folders order "100:1,200:2,300:3"
Highlights
ip highlights list 123456ip highlights add 123456 --text "Some quote" --position 0ip highlights delete 98765
Health/verify/doctor
ip healthip verifyip doctor --json
Schemas
ip schema bookmarksip schema auth