Zowe CLI quick start
Get started with Zoweâ„¢ CLI quickly and easily.
Note: This section assumes some prerequisite knowledge of command-line tools and writing scripts. If you prefer more detailed instructions, see Installing Zowe CLI.
#
Installing#
Software RequirementsBefore you install Zowe CLI, download and install Node.js and npm. Use an LTS version of Node.js that is compatible with your version of npm. For a list of compatible versions, see Node.js Previous Releases.
(Linux only): On graphical Linux, install gnome-keyring
and libsecret
on your computer before you install the Secure Credential Store. On headless Linux, follow the procedure documented in the SCS plug-in Readme.
#
Installing Zowe CLI core from public npmIssue the following commands in sequence to install the core CLI.
The "core" includes Zowe CLI and Secure Credential Store, which enhances security by encrypting your username and password.
#
Installing CLI plug-insThe command installs most open-source plug-ins, but the IBM Db2 plug-in requires additional configuration to install.
For more information, see Installing plug-ins.
#
Issuing your first commandsIssue zowe --help
to display full command help. Append --help
(alias -h
) to any command to see available command actions and options.
To interact with the mainframe, type zowe
followed by a command group, action, and object. Use options to specify your connection details such as password and system name.
#
Listing all data sets under a high-level qualifier (HLQ)#
Downloading a partitioned data-set (PDS) member to local fileSee Command Groups for a list of available functionality.
#
Using profilesZowe profiles let you store configuration details such as username, password, host, and port for a mainframe system. Switch between profiles to quickly target different subsystems and avoid typing connection details on every command.
#
Profile typesMost command groups require a zosmf-profile
, but some plug-ins add their own profile types. For example, the CICS plug-in has a cics-profile
. The profile type that a command requires is defined in the PROFILE OPTIONS
section of the help response.
Tip: The first zosmf
profile that you create becomes your default profile. If you don't specify any options on a command, the default profile is used. Issue zowe profiles -h
to learn about listing profiles and setting defaults.
#
Creating a zosmf profileNote: The port defaults to 443 if you omit the --port
option. Specify a different port if your host system does not use port 443.
#
Using a zosmf profileFor detailed information about issuing commands, using profiles, and more, see Using CLI.
#
Writing scriptsYou can write Zowe CLI scripts to streamline your daily development processes or conduct mainframe actions from an off-platform automation tool such as Jenkins or TravisCI.
#
Example:You want to delete a list of temporary datasets. Use Zowe CLI to download the list, loop through the list, and delete each data set using the zowe zos-files delete
command.
For more information, see Writing scripts.
#
Next StepsYou successfully installed Zowe CLI, issued your first commands, and wrote a simple script! Next, you might want to:
Issue the
zowe --help
command to explore the product functionality, or review the online web help.Learn about using environment variables to store configuration options.
Learn about integrating with API Mediation Layer.
Write scripts and integrate them with automation server, such as Jenkins.
See what plug-ins are available for the CLI.
Learn about developing for the CLI (contributing to core and developing plug-ins).