Zowe CLI V2 introduces the concept of team profiles, which add team configurations to the user configurations already in use by Zowe CLI V1.
Types of configuration files
Both team and user configurations can be applied either globally or per project, as described in the following definitions:
A user configuration file stores user profiles and is used for one person who needs their own unique properties to run commands.
A team configuration file stores team profiles and is used by a group of people who need the same properties to run commands.
A global configuration file resides in the
ZOWE_CLI_HOMEdirectory (YourUserHomeDirectory/.zowe, by default). It contains global user profiles and global team profiles.
A project configuration file resides in a directory of your choice. It contains project user profiles and project team profiles.
Zowe CLI profile types
Configuration files are made up of multiple profiles that can be used by Zowe CLI. These profiles contain credentials and/or settings that are applied by the commands run in the CLI.
The following profile types were introduced in Zowe V1 and continue to be used in Zowe V2:
Service profiles let you store connection information for specific mainframe service, such as IBM z/OSMF. Plug-ins can introduce other service profile types, such as the
cicsprofile to connect to IBM CICS.
Base profiles let you store connection information for use with one or more services. Your service profiles can pull information from base profiles as needed, so that you can specify a common username and password once. The base profile can optionally store tokens to connect to Zowe API Mediation Layer, which improves security by enabling Multi-Factor Authentication (MFA) and Single Sign-on (SSO).
Benefits of team profiles
Using team profiles in configuration files helps to improve the initial setup of Zowe CLI by making service connection details easier to share and easier to store within projects.
Consider the following benefits of using team profiles:
As an application developer or team member, you can manage your connection details efficiently in one location.
As a Dev-Ops advocate, or team leader, you can share global configurations with your team members so that they can easily access mainframe services. You can add the file directly to your project in a software change management (SCM) application.
As a Dev-Ops advocate, you can quickly onboard new application developers by sharing the configuration file that your team uses with the new team member.
As an application developer in a small shop where your role is that of an application developer and a Dev-Ops advocate, you can create whatever configuration type is most suitable for your needs!
Important information about team profiles
With the introduction of team profiles, the Secure Credential Store (SCS) Plug-in is deprecated. Secure credential encryption is now handled by the the secure array in the
You can convert all of your Zowe CLI and Zowe CLI plug-ins V1 profiles to team profiles by issuing the following command:
zowe config convert-profiles
You can continue using Zowe CLI V1 profiles with Zowe CLI V2. However, we highly recommend that you implement V2 profiles with Zowe CLI V2.
If plain text credentials exist in the original V1 profiles and are converted, the resulting V2 team configuration file,
zowe.config.json, will also contain plain text credentials.
Commands in the
zowe configcommand group now let you manage security for any option value.
zowe configcommand groups were repurposed to work with team profiles.
Zowe CLI V2 prompts you to enter the username and password securely by default.