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.

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