kusion preview
Preview a series of resource changes within the stack
Synopsis
Preview a series of resource changes within the stack.
Create, update or delete resources according to the intent described in the 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 specified work directory
kusion preview -w /path/to/workdir
# Preview with specified arguments
kusion preview -D name=test -D age=18
# Preview with specified intent file
kusion preview --intent-file intent.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
--intent-file string Specify the intent file path as input, and the intent file must be located in the working directory or its subdirectories
--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
-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