Skip to main content

kusion build

Build Kusion modules in a Stack to the Intent.

Synopsis

Build Kusion modules in a Stack to the Intent.

The command must be executed in a Stack or by specifying a Stack directory with the -w flag. You can provide a list of arguments to replace the placeholders defined in KCL, and use the --output flag to output the built results to a file.

kusion build [flags]

Examples

  # Build main.k with arguments
kusion build -D name=test -D age=18

# Build main.k with work directory
kusion build -w appops/demo/dev

# Build main.k and write result into output.yaml
kusion build -o output.yaml

# Build without output style and color
kusion build --no-style=true

Options

  -D, --argument stringToString   Specify the top-level argument (default [])
-h, --help help for build
--no-style Disable the output style and color
-o, --output string Specify the output file
-w, --workdir string Specify the work directory

SEE ALSO

  • kusion - Kusion is the platform engineering engine of KusionStack
Auto generated by spf13/cobra on 30-Nov-2023