Skip to main content
Version: v0.13 ๐Ÿšง

kusion stack create

Create a new stack

Synopsisโ€‹

This command creates a new stack under the target directory which by default is the current working directory.

The stack folder to be created contains 'stack.yaml', 'kcl.mod' and 'main.k' with the specified values.

Note that the target directory needs to be a valid project directory with project.yaml file

kusion stack create

Examplesโ€‹

  # Create a new stack at current project directory
kusion stack create dev

# Create a new stack in a specified target project directory
kusion stack create dev --target /dir/to/projects/my-project

# Create a new stack copied from the referenced stack under the target project directory
kusion stack create prod --copy-from dev

Optionsโ€‹

      --copy-from string   specify the referenced stack path to copy from
-h, --help help for create
-t, --target string specify the target project directory

Options inherited from parent commandsโ€‹

      --profile string          Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex) (default "none")
--profile-output string Name of the file to write the profile to (default "profile.pprof")

SEE ALSOโ€‹

  • kusion stack - Stack is a folder that contains a stack.yaml file within the corresponding project directory
Auto generated by spf13/cobra on 12-Jun-2024โ€‹