Connecting to z/OS using Zowe CLI walk through
Creating a Zowe team configuration file
Issue the
zowe config init
command and you will be prompted for profile information. After responding to the prompts, thezowe.config.json
file will be added to your~/.zowe
directory.- Run
zowe config init --global-config
to create a global profile. - Run
zowe config init --help
to learn all options for editing profiles by using a command line.
Note: This tutorial walks through creating a global profile. User scoped configuration is very similar except that the file is created in your project's folder and is named
zowe.user.json
. Runzowe config init --user-config
to create a profile scoped to your project folder.- Run
If you responded to the prompts to enter a username and password for a mainframe service, your credentials are stored securely on your computer by default.
Open the
zowe.config.json
file in any text editor that supports JSON files, and then update the host and port values and other information needed in the profiles that are listed in the configuration file.Fill out the
rse
orzosmf
profile template insidezowe.config.json
depending on which type of profile you are creating.You can also use the command line to set team configuration properties. For example, run
zowe config set "profiles.host1.profiles.service1.properties.setting" "value" --global-config
zowe config set --secure ...
to set a secure property.If username and password were entered in step 1, you can use your profiles to access data sets, z/OS UNIX System Services files and directories, and jobs. If not entered, you will be prompted the first time you run a CLI command. If ‘autoStore:true’ is set in the configuration file, the credentials will be stored securely on your computer.
For more information about team configuration profiles in Zowe, see Zowe CLI documentation.
For a Zowe team configuration file example, see here.
Supported authentication methods
Zowe supports many authentication mechanisms and you are not limited to username and password only. For more information, see Supported methods of authentication for z/OS using Zowe.