Documentation navigation
Anybuild documentation

CLI Reference

Commands and important options exposed by the anybuild binary.

Commands

CommandPurpose
auto / implicitGenerate when needed, build, optionally run and deploy.
generateCreate or refresh an Anybuild definition.
planEvaluate provider config, commands, and services without building.
buildExecute build steps and prepare runtime artifacts.
runInvoke named commands from an existing build.
deployPublish a built Wasmer package or write its deployment config.

Project and configuration options

OptionMeaning
PATHProject path; defaults to the current directory.
--subdirApplication directory relative to the project root.
--anybuild-pathUse a non-default Anybuild definition.
--providerForce a registered provider.
--configMerge a JSON object over detected provider configuration.
--install-commandOverride the first install-group step.
--build-commandOverride the first build-group step.
--start-commandOverride the start command.
--serve-portSet the plan and runtime port.

Execution options

OptionMeaning
--dockerUse the Docker build backend.
--docker-clientSelect a Docker-compatible client.
--docker-optsPass extra client options.
--wasmerUse the Wasmer runtime and package layout.
--wasmer-binSelect the Wasmer binary.
--wasmer-registrySelect the Wasmer registry.
--wasmer-tokenAuthenticate Wasmer build/deploy operations.
--skip-prepareDo not execute plan prepare steps.
--env-nameLoad .env.<name> files during build.

Run and deploy options

OptionMeaning
-c, --commandRun a named command; repeatable.
--startRun the start command.
--after-deployRun the after_deploy command.
--volume NAME:/pathAttach or override a named volume mapping.
--wasmer-deployBuild for Wasmer and publish.
--wasmer-deploy-config PATHWrite deployment metadata instead of publishing.
--wasmer-app-ownerSet the Wasmer owner.
--wasmer-app-nameSet the Wasmer application name.

Generation options

OptionMeaning
--regenerateRewrite the detected Anybuild definition before auto/plan.
--temp-anybuildUse an operation-scoped temporary definition.
--out, -oWrite generated definition or plan output to a path.