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
SEE ALSO
- kusion - Kusion is the platform engineering engine of KusionStack