init
Initialize a Chain project.
Arguments
Options
Logging verbosity.
humanfriendly (default) is pretty-printed; INFO, DEBUG, WARNING produce structured logs.my-chain, use the following:
push
Deploy a Chain.
Arguments
Class name of the entrypoint chainlet. If omitted, the chainlet tagged with
@chains.mark_entrypoint is used.Options
Published deployments are now the default. Use
--watch for development deployments instead.Deploy the Chain as a published deployment to the specified environment. When specified, publish is implied and
--promote is ignored.Watch the Chains source code and apply live patches. Implies
--wait — the command waits for the Chain to be deployed before starting to watch for changes. Requires a development deployment.Run
watch, but only apply patches to specified chainlets. Pass a comma-separated list of chainlet display names. Faster dev loops, but may lead to inconsistent deployments. Use with caution and refer to the chain watch documentation.Attach git versioning info (sha, branch, tag) to deployments made from within a git repo. Can also be set permanently in
.trussrc.Name of the team to deploy to. If not specified, Truss infers the team based on your team membership and existing chains, 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.Keep development chainlet models warm by preventing scale-to-zero while watching. Requires —watch.
Logging verbosity.
humanfriendly (default) is pretty-printed; INFO, DEBUG, WARNING produce structured logs.watch
Live reload development.
Arguments
Class name of the entrypoint chainlet. If omitted, the chainlet tagged with
@chains.mark_entrypoint is used.Options
Run
watch, but only apply patches to specified chainlets. Pass a comma-separated list of chainlet display names. Faster dev loops, but may lead to inconsistent deployments. Use with caution and refer to the chain watch documentation.Name of the team for the Chain to watch. If not specified, Truss infers the team based on your team membership and existing chains, 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.Keep development chainlet models warm by preventing scale-to-zero while watching.
Logging verbosity.
humanfriendly (default) is pretty-printed; INFO, DEBUG, WARNING produce structured logs.watch keeps development Chainlets warm (--no-sleep is on) so they don’t scale to zero while you iterate. To let idle Chainlets scale to zero, opt out: