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.
--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.
--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