WHAT YOU'LL LEARN
  • How to deploy your whole Webiny project
  • How to deploy one or more specific apps
  • What options the deploy command accepts

Overview
anchor

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
anchor

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
anchor

Pass one or more app names as arguments:

With a specific environment:

Options
anchor

OptionDescription
--envEnvironment name (e.g. dev, prod). Defaults to dev.
--variantVariant name.
--regionAWS region to target.
--buildBuild packages before deploying. Defaults to true.
--previewPreview the deploy without actually performing it.
--show-deployment-logsPrint deployment logs (automatically enabled in CI).
--allow-local-state-filesAllow using local Pulumi state files with production deployments (not recommended).