CLI
Webiny Deploy
Build and deploy your Webiny project to AWS.
WHAT YOU'LL LEARN
- How to deploy your whole Webiny project
- How to deploy one or more specific apps
- What options the
deploycommand accepts
Overview
The deploy command builds your code and deploys the resulting cloud infrastructure to AWS using Pulumi. You can deploy the whole project at once, or target one or more specific apps.
Deploy the Whole Project
This deploys all apps in the correct order. The environment defaults to dev. To target a different environment:
Depending on your [database setup](#), the first deployment can take up to 20 minutes.
Deploy Specific Apps
Pass one or more app names as arguments:
With a specific environment:
Options
| Option | Description |
|---|---|
--env | Environment name (e.g. dev, prod). Defaults to dev. |
--variant | Variant name. |
--region | AWS region to target. |
--build | Build packages before deploying. Defaults to true. |
--preview | Preview the deploy without actually performing it. |
--show-deployment-logs | Print deployment logs (automatically enabled in CI). |
--allow-local-state-files | Allow using local Pulumi state files with production deployments (not recommended). |