appz deploy CLI command. The appz deploy command deploys Appz projects and can be executed from the project’s root directory or by specifying a path. The command appz operates without needing the ‘deploy’ subcommand. This document will use ‘appz’ to refer to appz deploy.
Usage
terminal
Using the appz command from the root of an Appz project directory.
Extended Usage
terminal
Using the appz command and supplying a path to the root directory of the Appz project.
terminal
Using theappzcommand to deploy a prebuilt Appz project, typically withappz build. See appz build for more details.
Standard Output Usage
When deploying, stdout is always the Deployment URL.terminal
Using the appz command to deploy and write stdout to a text file.
Deploying to a Custom Domain
Example bash script for a CI/CD workflow to alias all preview deployments to a custom domain. Note that defining the scope may be necessary when using appz alias.deployDomain.sh
The script deploys your project and assigns the deployment URL saved in stdout to the custom domain using appz alias.
Standard Error Usage
Example script to check for errors during deployment, useful in CI/CD workflows:checkDeploy.sh
Unique Options
These options only apply to theappz command.
Build Env
terminal
Using theappzcommand with the--build-envoption.
Yes
terminal
Using theappzcommand with the--yesoption to skip questions when setting up a new Appz project.
Env
terminal
Using theappzcommand with the--envoption to provide runtime environment variables.
Prod
terminal
Using theappzcommand with the--prodoption to create a deployment for a production domain specified in the Appz project dashboard.
Skip Domain
terminal
Using theappzcommand with the--skip-domainoption to disable the automatic promotion of relevant domains to a new production deployment.
No Wait
terminal
Using theappzcommand with the--no-waitoption to not wait for a deployment to finish before exiting.
Global Options
These general options can be applied when using theappz deploy command:--cwd--debug--global-config--help--local-config--no-color--scope--token