Run whilst auth login and paste your API key when prompted. Credentials are stored securely in ~/.config/whilst/credentials.json and persist across sessions.
whilst auth login # Interactive API key promptwhilst auth login --api-key <key> # Non-interactive loginwhilst auth logout # Remove stored credentialswhilst auth status # Show auth info and connection status
whilst docs listwhilst docs list --folder-id <uuid> # filter by folderwhilst docs list --search "meeting notes" # full-text searchwhilst docs list --tags "tag1,tag2" # filter by tagswhilst docs list --limit 20 # max results (default: 50)whilst docs list --pinned # only pinned documentswhilst docs list --fields id,title # only return specified fields
whilst docs get
Get full document content and metadata.
Copy
Ask AI
whilst docs get <document-uuid>
whilst docs create
Create a document from inline content, a file, or piped stdin.
Copy
Ask AI
# From inline markdownwhilst docs create --content "# Project Plan\n\nObjectives..."# From a local filewhilst docs create --file ./design-doc.md# Pipe content from stdinecho "# Generated Report" | whilst docs create --folder "Reports"cat analysis.md | whilst docs create# JSON input modeecho '{"content":"# Doc","folder":"Engineering"}' | whilst docs create --json# Into a specific folder (by name or UUID)whilst docs create --content "# Notes" --folder "Engineering"
whilst folders listwhilst folders list --parent-id <uuid> # children of a folderwhilst folders list --include-counts # include doc countswhilst folders get <uuid>
whilst folders tree # full hierarchywhilst folders tree --depth 3 # limit depthwhilst folders tree --include-counts # show doc countswhilst folders tree <folder-uuid> # tree from specific root
whilst docs list # JSON (default, ideal for scripting)whilst docs list -t # Human-readable table with colorswhilst docs list -q # Quiet (just IDs)whilst docs list --fields id,title # Only specified fields
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.
--format <json|table|quiet> # Output format (default: json)-t # Shorthand for --format table-q # Shorthand for --format quiet--fields <f1,f2,...> # Only include specified fields--api-key <key> # Use a specific API key for this command--verbose, -V # Verbose logging to stderr--help, -h # Show help--version, -v # Show version