Skip to main content
⏳ Estimated read time: 2 min read

create

create

The stackgen appstack create command creates an empty appStack, or creates one from an appStack that has the template label (the same stacks shown under Templates in the UI).

Use stackgen appstack list-templates to see valid templates. Name resolution for --template matches other appstack commands within the current project.

Usage

stackgen appstack create [flags]

Flags (command)

FlagDescription
--appstack-name stringName for the new appStack (optional with --template).
--cloud-provider stringaws, gcp, azure, civo, oci, other (default aws).
--skip-policiesSkip default compliance policies.
--template stringTemplate appStack UUID or name (unique in the current project).
-h, --helpHelp for create.

Global flags (with this command)

You can combine stackgen appstack create with the usual globals, for example -i / --interactive, --log, -o / --output, --project, --workspace, --stackgen-home. See Global CLI flags. Use STACKGEN_PROJECT or STACKGEN_WORKSPACE for the default project when you do not pass --project / --workspace.

Copy-paste CLI examples

Every block below uses only the command flags in the Flags (command) table plus global flags from Global CLI flags.

Empty appStack (AWS default)

stackgen appstack create \
--appstack-name my-app \
--cloud-provider aws

Skip default compliance policies

stackgen appstack create \
--appstack-name my-app \
--cloud-provider aws \
--skip-policies

Create from a template

stackgen appstack list-templates
stackgen appstack create \
--template <template-uuid-or-name> \
--appstack-name my-app-from-template

If you omit --appstack-name when using --template, the CLI creates a new stack with an auto-generated name.

Interactive

stackgen appstack create -i

Same as stackgen appstack create --interactive.

With a project (global)

stackgen appstack create \
--appstack-name my-app \
--cloud-provider aws \
--project my-project-id

JSON command output (global)

stackgen appstack create \
--appstack-name my-app \
--cloud-provider aws \
--output json

Debug logging (global)

stackgen appstack create \
--appstack-name my-app \
--cloud-provider aws \
--log 2