Skip to main content
Version: v0.10 🚧

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 configurations and write result into an output.yaml
kusion build -o output.yaml

# Build configurations with arguments from settings.yaml
kusion build -Y settings.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
-Y, --setting strings Specify the command line setting files
-w, --workdir string Specify the work 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 - Kusion is the Platform Orchestrator of KusionStack
Auto generated by spf13/cobra on 4-Jan-2024