--output json and --jq filtering, so anything you do interactively is scriptable.
The CLI is open source on GitHub, where you can browse the code, watch for new releases, and file issues.
The Baseten CLI is in beta and under active development. Commands, flags, output schemas, and the install path may change before general availability.
Install
Install with Homebrew on macOS or Linux:brew upgrade baseten.
Manual install (Windows, or a specific version)
Manual install (Windows, or a specific version)
Download and extract the For other platforms or a specific version, download an archive from GitHub releases and move
baseten binary for your platform, then place it on your PATH.- macOS (arm64)
- Linux (x64)
- Windows (x64)
Download and extract
baseten into /usr/local/bin:baseten onto your PATH.Authenticate
Log in interactively:BASETEN_API_KEY in the environment instead. See baseten auth for browser login, reading a key from stdin, switching accounts, and credential storage.
Output and filtering
Every Baseten-native command supports four output formats through--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.
Global flags
These flags work on every Baseten-native command:| Flag | Description |
|---|---|
--profile | Use a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile. |
--output, -o | Output format: text, json, jsonl, or none. See Output and filtering. |
--jq, -q | Filter JSON output with a jq expression. See Output and filtering. |
--verbose, -v | Enable verbose logging. |
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, watch, list, describe, predict against, and delete models. |
baseten model deployment | Activate, configure, download, promote, delete, describe, list, stream logs from, and fetch metrics for deployments. |
baseten model deployment replica | Terminate an individual deployment replica. |
baseten model environment | Activate, deactivate, describe, and list model environments. |
baseten model-api | List and inspect Baseten Model APIs. |
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.