The Baseten CLI manages your Baseten workspace from the command line: organizations, API keys, secrets, deployment lifecycle (promote, activate, terminate replicas), and raw API access. Every Baseten-native command supportsDocumentation Index
Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
Use this file to discover all available pages before exploring further.
--output json and --jq filtering, so anything you do interactively is also scriptable. (The baseten truss passthrough forwards to the truss binary and is the one exception.)
For model authoring workflows (writing model.py, iterating with truss watch, packaging Chains and Training jobs), use the Truss CLI. The two CLIs are designed to coexist; the CLI router page explains when to reach for each.
Install
The Baseten CLI is a single Go binary.Authenticate
--with-api-key. Switch between accounts with baseten auth switch; check the active account with baseten auth status. See baseten auth login for the full options.
Credentials are stored in your OS keyring (macOS Keychain, GNOME Keyring, Windows Credential Manager). On systems with no keyring available (a headless Linux container, for example), the CLI falls back to plaintext storage and prints a warning.
Output and filtering
Every Baseten-native command supports four output formats via--output:
text(default): human-readable narrative.json: a single JSON document. Pair with--jq EXPRto extract one field.jsonl: one JSON record per line. Used by commands that stream results.none: suppress stdout entirely.
--jq implies --output json (or jsonl for streamed commands), so a single flag turns any command into a clean value for the next stage of your pipeline.
Command groups
Thebaseten CLI organizes commands by resource:
| Command group | Use it to |
|---|---|
baseten api | Make raw management or inference API requests. |
baseten auth | Log in, log out, switch accounts, and inspect the active account. |
baseten model | Push, list, fetch, predict against, and delete models. |
baseten model deployment | Activate, configure, download, promote, delete, fetch, list, and stream deployment logs. |
baseten model deployment replica | Terminate an individual deployment replica. |
baseten model environment | Activate, deactivate, fetch, and list model environments. |
baseten org api-key | List, create, and delete organization API keys. |
baseten org billing | Inspect organization billing usage. |
baseten org secret | List, set, and delete organization secrets. |
baseten truss | Forward commands to the truss binary on your PATH. |
baseten version | Print Baseten CLI version information. |
Next steps
Deploy from CI
Use
baseten model push from GitHub Actions and other CI runners.Compare with Truss
See when to reach for
baseten vs truss for each task.