Skip to main content
Version: v0.11

kusion config set

Set a config item

Synopsis

This command sets the value of a specified kusion config item, where the config item must be registered, and the value must be in valid type.

kusion config set

Examples

  # Set a config item with string type value
kusion config set backends.current mysql-pre

# Set a config item with int type value
kusion config set backends.mysql-pre.configs.port 3306

# Set a config item with struct or map type value
kusion config set backends.mysql-pre.configs '{"dbName":"kusion","user":"kk","host":"127.0.0.1","port":3306}'

Options

  -h, --help   help for set

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

Auto generated by spf13/cobra on 29-Apr-2024