Skip to main content
Version: v0.10 🚧

kusion init

Initialize the scaffolding for a project

Synopsis

This command initializes the scaffolding for a project, generating a project from an appointed template with correct structure.

The scaffold templates can be retrieved from local or online. The built-in templates are used by default, self-defined templates are also supported by assigning the template repository path.

kusion init

Examples

  # Initialize a project from internal templates
kusion init

# Initialize a project from default online templates
kusion init --online=true

# Initialize a project from a specific online template
kusion init https://github.com/<user>/<repo> --online=true

# Initialize a project from a specific local template
kusion init /path/to/templates

Options

      --custom-params string   Custom params in JSON. If specified, it will be used as the template default value and skip prompts
--force Force generating the scaffolding files, even if it would change the existing files
-h, --help help for init
--online Use templates from online repository to initialize project, or use locally cached templates
--project-name string Initialize with specified project name. If not specified, a prompt will request it
--template-name string Initialize with specified template. If not specified, a prompt will request it
--yes Skip prompts and proceed with default values

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 - Kusion is the Platform Orchestrator of KusionStack
Auto generated by spf13/cobra on 4-Jan-2024