Skip to main content

defang stack new

Create a new Defang deployment stack

defang stack new STACK_NAME [flags]

Aliases: init

Options

  -h, --help            help for new
-m, --mode mode deployment mode; one of [AFFORDABLE BALANCED HIGH_AVAILABILITY]
-r, --region string Cloud region for the stack deployment

Options inherited from parent commands

      --color color-mode      colorize output; one of [never auto always] (default auto)
-C, --cwd string change directory before running the command
--debug debug logging for troubleshooting the CLI
--dry-run dry run (don't actually change anything)
-f, --file stringArray compose file path(s)
-T, --non-interactive disable interactive prompts / no TTY (default true)
--org string override GitHub organization name (tenant)
-p, --project-name string project name
-P, --provider provider bring-your-own-cloud provider; one of [defang aws digitalocean gcp] (default auto)
-s, --stack string stack name (for BYOC providers)
-v, --verbose verbose logging

SEE ALSO

Auto generated by spf13/cobra on 31-Oct-2025