Skip to main content
This page is generated from cli/src/docs-manifest.json and the CLI program definition.

Global options

Default API target

https://api.webstashai.com

Authentication

login

Authenticate with WebStash using email and password or an API key.
  • Authentication required: No
  • Related commands: logout, whoami, config-show, status
Examples: webstash login webstash login --key-file ~/.webstash-key echo $TOKEN | webstash login --key-stdin

logout

Clear the stored session or API key from the local CLI config.
  • Authentication required: No
  • Related commands: login, whoami
Examples: webstash logout

whoami

Show the authenticated user, plan, and usage details.
  • Authentication required: Yes
  • Related commands: login, config-show, status, stats
Examples: webstash whoami webstash whoami --json

status

Show a combined overview of your account, library size, AI quota, and session expiry.
  • Authentication required: Yes
  • Related commands: whoami, stats, config-show
Examples: webstash status webstash status --json webstash status --plain

config-show

Print the current CLI configuration, including API URL and config file location.
  • Authentication required: No
  • Related commands: login, whoami, status
Examples: webstash config-show

Capture

save

Save a URL into WebStash. Accepts a single URL as an argument, or reads multiple URLs from stdin (one per line) for batch saving.
  • Authentication required: Yes
  • Related commands: list, get, check
Examples: webstash save https://example.com webstash save https://example.com --title "Custom title" echo "https://example.com" | webstash save cat urls.txt | webstash save --concurrency 3

check

Check whether a URL is already saved in your library.
  • Authentication required: Yes
  • Related commands: save, search
Examples: webstash check https://example.com

Retrieve

Search saved pages using keywords or natural language.
  • Authentication required: Yes
  • Related commands: get, content, ask, related
Examples: webstash search "workers auth" webstash search "mcp" --limit 5 --json webstash search "react" --domain github.com --after 2025-01-01

context

Build a token-budgeted context pack about a topic. Returns many ranked pages with summaries, sized to your budget, at zero AI-quota cost.
  • Authentication required: Yes
  • Related commands: search, get, ask
Examples: webstash context "what do I know about RAG evaluation?" webstash context "rust async" --budget 12000 --json webstash context "deploys" --domain github.com --after 2026-01-01

list

List saved pages in chronological order with optional filters.
  • Authentication required: Yes
  • Related commands: search, get, stats
Examples: webstash list webstash list --status indexed --limit 20 webstash list --domain github.com --after 2025-01-01

get

Show page metadata for one saved item.
  • Authentication required: Yes
  • Related commands: content, open, related, delete
Examples: webstash get PAGE_ID

content

Print the full saved page content as markdown. Output is paged when it exceeds terminal height.
  • Authentication required: Yes
  • Related commands: get, search, ask
Examples: webstash content PAGE_ID webstash content PAGE_ID | grep 'pattern' webstash content PAGE_ID > page.md

open

Open a saved page in the default browser.
  • Authentication required: Yes
  • Related commands: get, content, search
Examples: webstash open PAGE_ID Find pages semantically similar to a given page.
  • Authentication required: Yes
  • Related commands: get, search, collection
Examples: webstash related PAGE_ID webstash related PAGE_ID --limit 10

AI

ask

Ask a question across your saved pages and get a cited answer. Uses AI quota.
  • Authentication required: Yes
  • Related commands: search, content, synthesize
Examples: webstash ask "What have I saved about OAuth?" webstash ask "summarize my React notes" --json

synthesize

Generate a structured synthesis across pages on one topic. Uses AI quota.
  • Authentication required: Yes
  • Related commands: ask, search, collections
Examples: webstash synthesize "agent workflows"

Organize

tags

List tags and tag counts from your library.
  • Authentication required: Yes
  • Related commands: collections, update, stats
Examples: webstash tags webstash tags --json

collections

List your library’s editable groups. Pass —legacy-tag-buckets for the deprecated auto-tag rollups.
  • Authentication required: Yes
  • Related commands: collection, tags, search
Examples: webstash collections webstash collections --legacy-tag-buckets

collection

List pages in a group by name. With —legacy-tag-buckets, treats the name as a tag and uses the deprecated /collections endpoint.
  • Authentication required: Yes
  • Related commands: collections, search, related
Examples: webstash collection "AI & LLM News" webstash collection "Design Systems" --limit 20 webstash collection react --legacy-tag-buckets

highlight-add

Save a text highlight from a URL. If the URL isn’t saved yet, it will be saved automatically.
  • Authentication required: Yes
  • Related commands: highlight-list, highlight-delete, get
Examples: webstash highlight-add --url https://example.com --text "Key sentence" webstash highlight-add --url https://example.com --text "Key sentence" --note "Follow up"

highlight-list

List saved highlights, optionally filtered by URL or search query.
  • Authentication required: Yes
  • Related commands: highlight-add, highlight-delete, get
Examples: webstash highlight-list webstash highlight-list --url https://example.com webstash highlight-list --query "important" --limit 10

highlight-delete

Delete a highlight by ID. Prompts for confirmation unless —force is passed.
  • Authentication required: Yes
  • Related commands: highlight-list, highlight-add
Examples: webstash highlight-delete HIGHLIGHT_ID webstash highlight-delete HIGHLIGHT_ID --force

organize-draft

Draft an AI organizer plan from a prompt. Prints the preview; does NOT apply.
  • Authentication required: Yes
  • Related commands: organize-apply, organize-list, organize-status
Examples: webstash organize draft "Group my AI tools and research separately" webstash organize draft "Sort by topic" --json

organize-apply

Apply a previously-drafted organizer plan. wsk_ keys need the organizer:write scope.
  • Authentication required: Yes
  • Related commands: organize-draft, organize-undo, organize-status
Examples: webstash organize apply plan_abc webstash organize apply plan_abc --yes webstash organize apply plan_abc --json webstash organize apply plan_abc --idempotency-key=$(uuidgen)

organize-undo

Undo a previously-applied organizer run. wsk_ keys need the organizer:write scope.
  • Authentication required: Yes
  • Related commands: organize-apply, organize-status
Examples: webstash organize undo run_abc webstash organize undo run_abc --yes webstash organize undo run_abc --json webstash organize undo run_abc --idempotency-key=$(uuidgen)

organize-list

List recent organizer plans (most recent first).
  • Authentication required: Yes
  • Related commands: organize-draft, organize-status
Examples: webstash organize list webstash organize list --limit 50 webstash organize list --json

organize-status

Inspect an organizer plan or grouping run. Auto-detects whether the ID is a plan or a run.
  • Authentication required: Yes
  • Related commands: organize-draft, organize-apply, organize-undo, organize-list
Examples: webstash organize status plan_abc webstash organize status run_xyz webstash organize status some_id --type run webstash organize status some_id --json

Manage

update

Update a page title, favorite state, pin state, or tags. Shows before/after diff of changed fields.
  • Authentication required: Yes
  • Related commands: get, tags, reindex
Examples: webstash update PAGE_ID --title "New title" webstash update PAGE_ID --favorite --tags oauth,auth

delete

Delete a saved page by ID. Prompts for confirmation unless —force is passed.
  • Authentication required: Yes
  • Related commands: get, list, reindex
Examples: webstash delete PAGE_ID webstash delete PAGE_ID --force

reindex

Queue a saved page for reprocessing and reindexing.
  • Authentication required: Yes
  • Related commands: get, update, delete
Examples: webstash reindex PAGE_ID

stats

Show library and usage statistics.
  • Authentication required: Yes
  • Related commands: list, whoami, status, tags
Examples: webstash stats webstash stats --since 7d webstash stats --since 30d --json

Shell

completions

Print auto-generated shell completion scripts for bash, zsh, or fish.
  • Authentication required: No
  • Related commands: config-show
Examples: webstash completions bash >> ~/.bashrc webstash completions zsh >> ~/.zshrc eval "$(webstash completions bash)"

capabilities

List supported commands and CLI version, for agent feature detection.
  • Authentication required: No
  • Related commands: completions, config-show
Examples: webstash capabilities webstash capabilities --json webstash capabilities --json | jq '.data.commands[].name'