Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.99 KB

File metadata and controls

60 lines (42 loc) · 1.99 KB

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 stack. By default, Kusion will generate an execution preview 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 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 preview details, combined use with flag --detail
      --backend string          The backend to use, supports 'local', 'oss' and 's3'.
  -d, --detail                  Automatically show preview details with interactive options (default true)
  -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
  -w, --workdir string          The work directory to run Kusion CLI.
      --workspace string        The name of target workspace to operate in.

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 Internal Developer Platform
Auto generated by spf13/cobra on 29-Apr-2024