Installation
Authentication
Three ways to authenticate, in priority order:1
Interactive login (recommended)
Run Or pass the key directly:
whilst auth login and paste your API key when prompted. Credentials are stored securely in ~/.config/whilst/credentials.json and persist across sessions.2
Environment variable
Set
WHILST_API_KEY for session-wide access. Add to your shell profile (~/.bashrc, ~/.zshrc) to persist.3
Per-command flag
Use
--api-key to override for a single command.whl_live_ (production) or whl_test_ (testing).
Verify the connection:
Commands
Auth
Documents
whilst docs list
whilst docs list
List documents with optional filtering.
whilst docs get
whilst docs get
Get full document content and metadata.
whilst docs create
whilst docs create
Create a document from inline content, a file, or piped stdin.Content resolution order:
--file > --content > stdin.whilst docs update
whilst docs update
Update specific fields of a document.
whilst docs delete / move
whilst docs delete / move
Folders
whilst folders list / get
whilst folders list / get
whilst folders create / update
whilst folders create / update
whilst folders tree
whilst folders tree
View the full folder hierarchy.Table output:
whilst folders delete / move
whilst folders delete / move
Search
Web Search
Search the web for current information with AI-synthesized answers and citations.Bulk Operations
Status
Output Formats
All commands support multiple output formats:Data goes to stdout, errors go to stderr — safe for piping. Colors are automatically disabled when output is piped or the
NO_COLOR environment variable is set.Scripting & Piping
The CLI is designed for scripting and automation:Environment Variables
Exit Codes
Global Options
UX Features
The CLI includes several quality-of-life features:- Colors — Table output uses colored headers, IDs, and dates for readability. Automatically disabled in non-TTY environments or when
NO_COLORis set. - Spinners — Network requests show a spinner on stderr so you know the CLI is working.
- Did-you-mean — Mistyped commands get helpful suggestions (e.g.,
whilst dcs list→ “Did you mean docs?”). - Actionable errors — Error messages include what to do next, not just what went wrong.

