Connecting to z/OS using Zowe CLI walk through
Creating a Zowe team configuration file
Issue the
zowe config initcommand and you will be prompted for profile information. After responding to the prompts, thezowe.config.jsonfile will be added to your~/.zowedirectory.- Run
zowe config init --global-configto create a global profile. - Run
zowe config init --helpto 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-configto 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.jsonfile 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
rseorzosmfprofile template insidezowe.config.jsondepending 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-configzowe 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 multiple authentication mechanisms, so you are not limited to using only a username and password. For more information, see Supported methods of authentication for z/OS using Zowe.