Skip to main content
The Truss CLI authors and deploys models: write a config.yaml, iterate with truss watch, and push to Baseten. It also runs the Chains, Training, and Loops workflows. Install with uvx truss or pip install truss. The Baseten CLI Beta manages your workspace: organizations, API keys, secrets, and the deployment lifecycle, from promoting deployments to terminating replicas. It also calls models and the Baseten API. Every command supports --output json and --jq filtering, built for scripts and CI. Install with Homebrew. Both CLIs are open source and authenticate against the same Baseten backend.

Which one do I use?

TaskCLI
Authoring model.py or config.yaml and iterating with truss watchTruss
Deploying a model from your editorTruss (truss push)
Deploying a model from a CI workflow that parses outputBaseten CLI (baseten model push)
Authoring a Chain, Training job, or LoopTruss (truss chains, truss train, truss loops)
Creating or deleting an org API keyBaseten CLI (baseten org api-key)
Promoting a development deployment to productionBaseten CLI (baseten model deployment promote)
Querying a model from a shell pipelineBaseten CLI (baseten model predict --jq ...)
Managing org secretsBaseten CLI (baseten org secret)
Terminating a deployment replicaBaseten CLI (baseten model deployment replica)

Overlapping commands

A few commands exist in both CLIs:
ActionTrussBaseten CLIPick based on
Authenticatetruss loginbaseten auth loginWhichever CLI you already have installed. Both hit the same backend.
Deploy a modeltruss pushbaseten model pushtruss push while iterating locally (supports --watch). baseten model push from CI (structured output, scriptable errors).
Tail logstruss model-logsbaseten model deployment logsMatch the workflow you’re already in.

Use both together

baseten truss forwards arguments to the truss binary on your PATH, so baseten truss push works as a synonym for truss push.

Next steps

Author a model

Use Truss to package and deploy your first model.

Manage your workspace

Use the Baseten CLI for orgs, deployments, and automation.

Build a Chain

Create multi-step inference pipelines with truss chains.

Wire CI/CD

Use baseten model push in GitHub Actions and other pipelines.