## zowe › config › set

Create or update a configuration property.

#### Usage

zowe config set <property> [value] [options]

#### Positional Arguments

- `property` (string)

  - The property to set. You may specify a path using dot notation (e.g. profiles.host1.profiles.service1.properties.setting).

- `value` (string)

  - The property value to set. The value may be JSON. Use '--json' to indicate.

#### Options

- `--global-config` | `--gc` (boolean)

  - Set the property in global config.

    Default value: false

- `--user-config` | `--uc` (boolean)

  - Set the property in user config.

    Default value: false

- `--json` (boolean)

  - The property value is JSON.

    Default value: false

- `--secure` (boolean)

  - Store the property value securely. If omitted, any property named in the secure array of the config file will be saved securely.

#### Examples

- Set the property in global config:

  - `zowe config set "profiles.host1.profiles.service1.properties.setting" "value" --global-config`

- Set the property in user config:

  - `zowe config set "profiles.host1.profiles.service2.properties.setting" "value" --user-config`

- Set property value to JSON:

  - `zowe config set "profiles.host1.profiles.service3.properties.setting" "{"property":"value"}" --json`

- Store the property value:

  - `zowe config set "profiles.host1.profiles.service1.properties.setting" "value" --secure`

- Set a default zosmf profile:

  - `zowe config set "defaults.zosmf" "zosmfProfileName"`

- Set a default tso profile:

  - `zowe config set "defaults.tso" "tsoProfileName"`