Skip to main content
Learn to operate deployments on Baseten. After you push a model, you’ll scale it ahead of traffic, promote new versions, inspect logs and metrics, and deactivate or delete deployments you no longer need. You can manage your deployments using any of the following methods:
  • Dashboard: the Baseten web interface, for interactive changes and checking state.
  • Baseten CLI: terminal commands for scripting and automation. All commands except the baseten truss passthrough support --output json and --jq filtering.
  • Management API: REST endpoints for managing models, deployments, and environments from your own code.
  • CI/CD: automated deploys and promotions from GitHub Actions.

Find your task

Before you start

Authenticate

Sign in with your Baseten account and create an API key:
To sign in:
  1. Go to app.baseten.co.
  2. Enter your email and choose Continue, or choose Continue with Google or Continue with GitHub.
To create an API key:
  1. In your workspace, open API keys in your settings.
  2. Choose Create API key.
For enterprise authentication, including identity-provider sign-in and SCIM user provisioning, see SSO and SCIM or contact support to enable it for your workspace.

Find your model and deployment IDs

Each deployment has an ID, associated with the model that owns it. Use the two IDs together to target every operation on these pages. Both appear in the model’s page URL: Anatomy of the deployment page URL. In app.baseten.co/models/abc123/deployments/def456, abc123 is the model ID and def456 is the deployment ID. Anatomy of the deployment page URL. In app.baseten.co/models/abc123/deployments/def456, abc123 is the model ID and def456 is the deployment ID.
To find your IDs in the dashboard:
  1. Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
  2. Select your model.
  3. Choose Copy ID next to the model name.
  4. Select the deployment under Deployments. The deployment ID is the last segment of the page URL.

Download or inspect a deployment’s config

Fetch a deployment’s Truss config or source to inspect it locally. To print a deployment’s config.yaml:
To download a deployment’s source:
Use --out-file to save the source as a tar file instead of extracting it to a directory. Pass --overwrite to replace an existing file or non-empty directory. For more information, see deployment config and deployment download.

Next steps

For the concepts behind these operations, see Deployments and Environments. For incremental promotion, see Rolling deployments.