Promote to an environment
Promote a validated deployment to production (or a custom environment) to route that environment’s traffic to it. What happens to the previously promoted deployment is controlled by the target environment’s promotion cleanup strategy; see Environments for the concepts and Rolling deployments for incremental traffic shifting. Promotion can create a new published deployment with a different ID. For example, Baseten creates one when you promote a development deployment. A promotion can also reuse the source deployment. In both cases, use theid in
the promotion response as the promoted deployment ID. The request can return
while that deployment is still BUILDING, DEPLOYING, or UPDATING, before
the target environment points to it.
The cURL examples use jq to extract fields
from JSON responses.
- UI
- Baseten CLI
- Management API
- CI/CD
To promote a deployment:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- Select the deployment under Deployments.
- Choose Promote to….
- In the Promote deployment dialog, choose the target environment.
- Choose Promote to confirm.
current_deployment.id
matches the returned promoted_deployment_id. Check the environment, rather
than the source deployment:
- UI
- Baseten CLI
- Management API
To verify the promotion:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- On the model’s overview, confirm the environment card’s Current deployment shows the promoted deployment.
Deactivate a deployment
Deactivate a deployment to stop compute spend without deleting it. The deployment keeps its configuration and stays visible in the dashboard, but releases its replicas. Requests to a deactivated deployment fail with a400 error; see
troubleshooting
for the error and recovery.
- UI
- Baseten CLI
- Management API
To deactivate a deployment:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- Select the deployment under Deployments.
- Choose Deactivate deployment.
- Choose Yes, deactivate to confirm.
status moves to INACTIVE within a few seconds.
If you want the deployment to keep serving but stop paying for idle replicas,
scale to zero instead.
Deactivating also releases the deployment’s slot against your workspace’s
deployment limit.
Scaling to zero doesn’t, since the endpoint stays live.
Activate a deployment
Activate an inactive deployment to bring it back. Activation redeploys the model, so the deployment passes throughDEPLOYING before reaching ACTIVE.
- UI
- Baseten CLI
- Management API
To activate a deployment:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- Select the inactive deployment under Deployments.
- Choose Activate deployment.
activate
and the activate endpoint.
Delete a deployment
Delete deployments to clean up finished experiments and stale versions. A deployment that’s associated with an environment, or is the only deployment of a model, can’t be deleted; push a new deployment and promote it first, or delete the whole model.- UI
- Baseten CLI
- Management API
To delete a deployment:
- Sign in to your workspace at app.baseten.co and choose Dedicated Inference in the sidebar.
- Select your model.
- Select the deployment under Deployments.
- Choose Delete deployment and confirm.
baseten model delete or the
delete model endpoint.
For more information, see the Management API
delete deployment endpoint
and the Baseten CLI
deployment delete reference.
Next steps
- Scale a deployment to change replica behavior without a lifecycle change.
- Pull logs and metrics to verify a deployment’s health after a transition.
- CI/CD to run deploys and promotions from GitHub Actions.