Skip to main content
Version: v0.11

kusion workspace create

Create a new workspace

Synopsis

This command creates a workspace with specified name and configuration file, where the file must be in the YAML format.

kusion workspace create

Examples

  # Create a workspace
kusion workspace create dev -f dev.yaml

# Create a workspace and set as current
kusion workspace create dev -f dev.yaml --current

# Create a workspace in a specified backend
kusion workspace create prod -f prod.yaml --backend oss-prod

Options

      --backend string   the backend name
--current set the creating workspace as current
-f, --file string the path of workspace configuration file
-h, --help help for create

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 workspace - Workspace is a logical concept representing a target that stacks will be deployed to
Auto generated by spf13/cobra on 29-Apr-2024