Skip to content

kitchen-config

Shortcut: kf

Help option

~ $ dk kitchen-config --help


Current context is: default
Usage: dk kitchen-config [OPTIONS]

  Get and set Recipe variable overrides.

  Example:
  dk kf -k Dev_Sprint -a kitchen_override 'value1'

Options:
  -k, --kitchen TEXT      kitchen name
  -a, --add TEXT          Add a new override to this kitchen. This will update
                          an existing override variable.
                          Usage:  --add VARIABLE VALUE
                          Example:  -a kitchen_override 'value1'
  -g, --get TEXT          Get the value for an override variable.
  -u, --unset TEXT        Delete an override variable.
  -la, --listall          List all variables and their values.
  --help                  Show this message and exit.

Display all kitchen overrides using contextual arguments

~/Kitchens/Dev_Sprint $ dk kitchen-config --listall


Current context is: default
Recipe Overrides
 Variable Name            Value
 ----------------         ----------------
 override1                  value1
 override2                  value2
 override3                  value3

Get a kitchen override using contextual arguments

~/Kitchens/Dev_Sprint $ dk kitchen-config --get override1


Current context is: default
value1

Delete a kitchen override using explicit options and shortcuts

~ $ dk kf -k Dev_Sprint -u override1


Current context is: default
override1 unset

Add a kitchen override using explicit options and shortcuts

~ $ dk kf -k Dev_Sprint -a kitchen_override 'value1'


Current context is: default
kitchen_override added with value 'value1'