truss push [OPTIONS] [TARGET_DIRECTORY]

Options

--remote
TEXT

Name of the remote in .trussrc to patch changes to.

--publish
BOOL

Push the truss as a published deployment. If no production deployment exists, promote the truss to production after deploy completes.

--promote
BOOL

Push the truss as a published deployment. Even if a production deployment exists, promote the truss to production after deploy completes.

--preserve-previous-production-deployment
BOOL

Preserve the previous production deployment’s autoscaling setting. When not specified, the previous production deployment will be updated to allow it to scale to zero. Can only be use in combination with --promote option.

--trusted
BOOL

Give Truss access to secrets on remote host.

--model-name
TEXT

Name of the model

--deployment-name
TEXT

Name of the deployment created by the push. Can only be used in combination with --publish or --promote. Deployment name must only contain alphanumeric, ’.’, ’-’ or ’_’ characters.

--wait
BOOL

Whether to wait for deployment to complete before returning. If the deploy or build fails, will return with a non-zero exit code.

--timeout-seconds
INTEGER

Maximum time to wait for deployment to complete in seconds. Without specifying, the command will not complete until the deployment is complete.

--help

Show help message and exit.

Arguments

TARGET_DIRECTORY
Optional

A Truss directory. If none, use current directory.

Examples

truss push
truss push --publish /path/to/my-truss
truss push --remote baseten --publish --trusted
truss push --remote baseten --publish --deployment-name my-truss_1.0