Command Reference

Full reference for all dw commands. Run dw <command> --help for details on any command.

Auth

CommandDescription
dw loginAuthenticate via browser or API key
dw login --api-key <KEY>Headless authentication
dw login --org <ORG>Login within an organization
dw login --as <NAME>Set a custom account name
dw logoutRemove active account credentials
dw logout --allRemove all stored credentials
dw whoamiShow authenticated user

Accounts

CommandDescription
dw account listList all stored accounts
dw account currentShow the active account
dw account switch <NAME>Switch the active account
dw account rename <OLD> <NEW>Rename an account
dw account remove <NAME>Remove a stored account

Models

CommandDescription
dw models listList available models
dw models list --type chatFilter by type (chat, embeddings, reranker)
dw models get <MODEL>Get model details

Files

Remote (requires auth)

CommandDescription
dw files upload <PATH>Upload a JSONL file
dw files listList uploaded files
dw files list --allList all files (auto-paginate)
dw files list --purpose allInclude output and error files
dw files get <ID>Get file metadata
dw files delete <ID>Delete a file
dw files content <ID>Download file content
dw files cost-estimate <ID>Get processing cost estimate

Local (no auth needed)

CommandDescription
dw files validate <PATH>Validate JSONL format
dw files prepare <PATH>Transform JSONL (model, params, images)
dw files stats <PATH>Show line count, models, token estimates
dw files sample <PATH> -n <N>Random sample from JSONL
dw files merge <FILES...>Merge multiple JSONL files
dw files split <PATH>Split JSONL into chunks
dw files diff <A> <B>Compare two result files

Batches

CommandDescription
dw batches run <PATH>Upload + create batch (one step)
dw batches run <PATH> --watchUpload + create + watch progress
dw batches create --file <ID>Create batch from uploaded file
dw batches listList batches
dw batches get <ID>Get batch details
dw batches cancel <ID>Cancel a running batch
dw batches retry <ID>Retry failed requests
dw batches results <ID>Download results
dw batches watch <IDS...>Watch batch progress
dw batches analytics <ID>Show batch analytics

Stream

CommandDescription
dw stream <PATH>Upload, batch, watch, and pipe results

Realtime

CommandDescription
dw realtime <MODEL> <PROMPT>One-shot streaming inference

Usage & Requests

CommandDescription
dw usageShow usage summary (tokens, cost, requests)
dw usage --since 2026-03-01Usage from a specific date
dw usage --since 2026-03-01 --until 2026-03-31Usage for a date range
dw requestsList recent requests

Keys

CommandDescription
dw keys create --name <NAME>Create an API key
dw keys listList API keys (secrets masked)
dw keys delete <ID>Delete an API key

Webhooks

CommandDescription
dw webhooks create --url <URL>Create a webhook
dw webhooks listList webhooks
dw webhooks delete <ID>Delete a webhook
dw webhooks rotate-secret <ID>Rotate signing secret

Projects

CommandDescription
dw project init [NAME]Create a new project from template
dw project setupRun project setup command
dw project run <STEP>Run a named step
dw project run-allRun full workflow
dw project run-all --continueResume from last completed step
dw project statusShow run progress
dw project cleanRemove artifacts
dw project infoShow steps and workflow

Examples

CommandDescription
dw examples listList available examples
dw examples clone <NAME>Clone an example project

Config

CommandDescription
dw config showShow current configuration
dw config set-url <URL>Set both API URLs
dw config set-ai-url <URL>Set inference API URL
dw config set-admin-url <URL>Set admin API URL
dw config reset-urlsReset URLs to defaults

Other

CommandDescription
dw updateSelf-update to latest release
dw completions <SHELL>Generate shell completions