Skip to main content
Version: v0.11

kusion apply

Apply the operational intent of various resources to multiple runtimes

Synopsis

Apply a series of resource changes within the stack.

Create, update or delete resources according to the operational intent within a stack. By default, Kusion will generate an execution preview and prompt for your approval before performing any actions. You can review the preview details and make a decision to proceed with the actions or abort them.

kusion apply [flags]

Examples

  # Apply with specified work directory
kusion apply -w /path/to/workdir

# Apply with specified arguments
kusion apply -D name=test -D age=18

# Skip interactive approval of preview details before applying
kusion apply --yes

# Apply without output style and color
kusion apply --no-style=true

# Apply with localhost port forwarding
kusion apply --port-forward=8080

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)
--dry-run Preview the execution effect (always successful) without actually applying the changes
-h, --help help for apply
--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
--port-forward int Forward the specified port from local to service
--watch After creating/updating/deleting the requested object, watch for changes
-w, --workdir string The work directory to run Kusion CLI.
--workspace string The name of target workspace to operate in.
-y, --yes Automatically approve and perform the update after previewing it

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