Skip to main content

kusion preview

Preview a series of resource changes within the stack

Synopsis

Preview a series of resource changes within the stack.

Create or update or delete resources according to the KCL files within a stack. By default, Kusion will generate an execution plan and present it for your approval before taking any action.

kusion preview [flags]

Examples

  # Preview with specifying work directory
kusion preview -w /path/to/workdir

# Preview with specifying arguments
kusion preview -D name=test -D age=18

# Preview with specifying setting file
kusion preview -Y settings.yaml

# Preview with specifying spec file
kusion preview --spec-file spec.yaml

# Preview with ignored fields
kusion preview --ignore-fields="metadata.generation,metadata.managedFields

# Preview with json format result
kusion preview -o json

# Preview without output style and color
kusion preview --no-style=true

Options

  -a, --all --detail              Automatically show all plan details, combined use with flag --detail
-D, --argument stringToString Specify the top-level argument (default [])
-C, --backend-config strings backend-config config state storage backend
--backend-type string backend-type specify state storage backend
-d, --detail Automatically show plan details with interactive options
-h, --help help for preview
--ignore-fields strings Ignore differences of target fields
--no-style no-style sets to RawOutput mode and disables all of styling
--operator string Specify the operator
-o, --output string Specify the output format
-O, --overrides strings Specify the configuration override path and value
-Y, --setting strings Specify the command line setting files
--spec-file string Specify the spec file path as input, and the spec file must be located in the working directory or its subdirectories
-w, --workdir string Specify the work directory

SEE ALSO

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