Skip to main content
Version: v3.2.x LTS

Creating user profiles

Creating user profiles

As a system programmer or Zowe CLI user, you want to manage your connection details efficiently and in one location.

Initializing user-specific configuration

As a system programmer, you can optionally generate a user-specific configuration file that overrides the values defined in the global zowe.config.json file.

To generate the global profile configuration file (zowe.config.json), issue the following command:

zowe config init --global-config

To generate the global user profile configuration file (zowe.config.user.json), issue the following command:

zowe config init --global-config --user-config

In your user-specific file , observe that the "defaults" object is empty and the profiles do not have properties (see the following example). You can add your connection details as properties here to override properties in zowe.config.json, or add add new connections.

    "$schema": "./zowe.schema.json",
"profiles": {
"zosmf": {
"type": "zosmf",
"properties": {},
"secure": []
},
"tso": {
"type": "tso",
"properties": {},
"secure": []
},
"ssh": {
"type": "ssh",
"properties": {},
"secure": []
},
"global_base": {
"type": "base",
"properties": {},
"secure": []
}
},
"defaults": {},
"autoStore": true
}

Editing team profiles

After the initial setup, as a system programmer you can define additional mainframe services to the team (or user-specific) configuration file.

Open the ~/.zowe/zowe.config.json file in a text editor or IDE on your computer. The profiles object contains connection and other frequently needed information for accessing various services. For example:

{
"$schema": "./zowe.schema.json",
"profiles": {
"zosmf": {
"type": "zosmf",
"properties": {
"port": 443
}
},
"global_base": {
"type": "base",
"properties": {
"host": "example1.com"
},
"secure": [
"user",
"password"
]
}
},
"defaults": {
"zosmf": "zosmf",
"base": "global_base"
},
}