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
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"