set

Description

Set a configuration value from the config file.

The cdp configure set command can be used to set a single configuration value in the CDP config file. The set command supports both the qualified and unqualified config values documented in the get command (see cdp configure get help for more information).

To set a single value, provide the configuration name followed by the configuration value.

If the config file does not exist, one will automatically be created. If the configuration value already exists in the config file, it will updated with the new configuration value.

Setting a value for the cdp_access_key_id or cdp_private_key will result in the value being writen to the shared credentials file (~/.cdp/credentials). All other values will be written to the config file (default location is ~/.cdp/config).

Synopsis

cdp configure set varname value [--profile profile-name]

Options

varname (string)

The name of the config value to set.

value (string)

The value to set.

Examples

Given an empty config file, the following commands:

$ cdp configure set cdp_access_key_id default_access_key
$ cdp configure set cdp_private_key default_private_key
$ cdp configure set default.ca_bundle /path/to/ca-bundle.pem
$ cdp configure set foobar.farboo.true

will produce the following config file:

[default]
ca_bundle = /path/to/ca-bundle.pem

[foobar]
farboo = true

and the following ~/.cdp/credentials file:

[default]
cdp_access_key_id = default_access_key
cdp_private_key = default_private_key