init
Initialize a Chain project.
DIRECTORY(optional): Path to a new or empty directory for the Chain. Defaults to the current directory if omitted.
--log[humanfriendly | INFO | DEBUG]: Set log verbosity.--help: Show this message and exit.
my-chain, use the following:
push
Deploy a Chain.
SOURCE: Path to a Python file that contains the entrypoint chainlet.ENTRYPOINT(optional): Class name of the entrypoint chainlet. If omitted, the chainlet tagged with@chains.mark_entrypointis used.
--name(TEXT): Custom name for the Chain (defaults to entrypoint name).--publish / --no-publish: Create chainlets as a published deployment.--promote / --no-promote: Promote newly deployed chainlets into production.--environment(TEXT): Deploy chainlets into a particular environment.--wait / --no-wait: Wait until all chainlets are ready (or deployment failed).--watch / --no-watch: Watch the Chains source code and apply live patches. Using this option waits for the Chain to be deployed (the--waitflag is applied) before starting to watch for changes. This option requires the deployment to be a development deployment.--experimental-chainlet-names(TEXT): Runwatch, but only apply patches to specified chainlets. The option is a comma-separated list of chainlet (display) names. This option can give faster dev loops, but also lead to inconsistent deployments. Use with caution and refer to docs.--dryrun: Produce only generated files, but don’t deploy anything.--remote(TEXT): Name of the remote in .trussrc to push to.--team(TEXT): Name of the team to deploy to. If not specified, Truss infers the team or prompts for selection.--log[humanfriendly|I|INFO|D|DEBUG]: Customize logging.--help: Show this message and exit.
The
--team flag is only available if your organization has teams enabled. Contact us to enable teams, or see Teams for more information.watch
Live reload development.
SOURCE: Path to a Python file containing the entrypoint chainlet.ENTRYPOINT(optional): Class name of the entrypoint chainlet. If omitted, the chainlet tagged with@chains.mark_entrypointis used.
--name(TEXT): Name of the Chain to be deployed. If not given, the entrypoint name is used.--remote(TEXT): Name of the remote in .trussrc to push to.--team(TEXT): Name of the team to deploy to. If not specified, Truss infers the team or prompts for selection.
The
--team flag is only available if your organization has teams enabled. Contact us to enable teams, or see Teams for more information.--experimental-chainlet-names(TEXT): Runwatch, but only apply patches to specified chainlets. The option is a comma-separated list of chainlet (display) names. This option can give faster dev loops, but also lead to inconsistent deployments. Use with caution and refer to docs.--log[humanfriendly|W|WARNING|I|INFO|D|DEBUG]: Customize logging.--help: Show this message and exit.