Skip to main content
truss push [OPTIONS] [TARGET_DIRECTORY]
Deploys a Truss to Baseten. By default, creates a development deployment.

Options

--remote
TEXT
Name of the remote in .trussrc to push to.
--publish
Push as a published deployment. If no production deployment exists, promote to production after deploy completes.
--promote
Push as a published deployment and promote to production, even if a production deployment already exists.
--environment
TEXT
Push as a published deployment and promote into the specified environment.
--preserve-previous-production-deployment
Preserve the previous production deployment’s autoscaling settings. Can only be used with --promote.
--model-name
TEXT
Name of the model.
--deployment-name
TEXT
Name of the deployment. Can only be used with --publish or --environment. Must contain only alphanumeric, ., - or _ characters.
--wait
Wait for deployment to complete before returning. Returns non-zero exit code if deploy or build fails.
--timeout-seconds
INTEGER
Maximum time to wait for deployment in seconds.
--team
TEXT
Name of the team to deploy to. If not specified, Truss infers the team based on your team membership and existing models, or prompts for selection when ambiguous.
The --team flag is only available if your organization has teams enabled. Contact us to enable teams, or see Teams for more information.

Arguments

TARGET_DIRECTORY
TEXT
A Truss directory. Defaults to current directory.
Example: To deploy a development deployment from the current directory, use the following:
truss push
To deploy and publish to production, use the following:
truss push --publish --promote
To deploy to a specific environment, use the following:
truss push --environment staging
To deploy with a custom deployment name, use the following:
truss push --publish --deployment-name my-model_v1.0
To deploy to a specific team, use the following:
truss push --team my-team-name