Skip to main content

Mass Environment Deploy

mass environment deploy​

Deploy every instance in an environment, in dependency order

Synopsis​

Deploy Environment

Triggers a deployment of every instance in an environment, in dependency order. Any in-flight environment deployment is cancelled and replaced.

The command returns as soon as the deployment is enqueued; instances are provisioned asynchronously. Watch the deployments stream in the UI or list them with mass deployment list.

Usage​

shell
mass environment deploy <environment>

Arguments​

  • environment: full identifier of the environment to deploy (e.g. ecomm-staging).

Flags​

  • --follow: stream every deployment's logs to stdout until the rollout completes. Each line is prefixed with the instance id so the interleaved output stays grep-friendly when multiple deployments run in parallel.

Examples​

shell
# Deploy every instance in the staging environment.
mass environment deploy ecomm-staging

# Deploy a freshly-forked preview env.
mass environment fork ecomm-production pr42 --copy-environment-defaults
mass environment deploy ecomm-pr42

# Stream every instance's logs until the rollout finishes.
mass environment deploy ecomm-staging --follow
mass environment deploy [environment] [flags]

Options​

      --follow   Stream every deployment's logs to stdout until the rollout completes. Each line is prefixed with the instance id.
-h, --help help for deploy

Options inherited from parent commands​

      --profile string   Configuration profile to use (overrides MASSDRIVER_PROFILE and the active profile)

SEE ALSO​