Installing Zowe CLI
Install Zowe™ CLI on your computer.
Tip: If you are familiar with command-line tools and want to get started using Zowe CLI quickly, see Zowe CLI quick start. You can learn about new CLI features in the Release notes.
#
Methods to install Zowe CLIUse one of the following methods to install Zowe CLI.
If you encounter problems when you attempt to install Zowe CLI, see Troubleshooting Zowe CLI.
#
Installing Zowe CLI from a local packageIf you do not have internet access at your site, use the following method to install Zowe CLI from a local package.
Follow these steps:
Address the following software requirements:
Install Node.js V8.0 or higher LTS versions
Tip: You might need to restart the command prompt after installing Node.js. Issue the command
node --version
to verify that Node.js is installed.Verify that you have Node Package Manager (npm) that is compatible with your version of Node.js. For a list of compatible versions, see Node.js Previous Releases.
Tip: npm is included with the Node.js installation. Issue the command
npm --version
to verify the version of npm that is installed.(Optional) If you plan to install plug-ins, review the Software requirements for CLI plug-ins.
Navigate to Zowe.org Downloads and click the CLI Core button to download the core package. The "core" includes Zowe CLI and Secure Credential Store, which enhances security by encrpyting your username and password.
A file namedÂ
zowe-cli-package-v.r.m.zip
 is downloaded to your computer(Optional) Click the CLI Plugins button to download the optional plugins.
A file named
zowe-cli-plugins-v.r.m.zip
is downloaded to your computer.Unzip the contents of
zowe-cli-package-v.r.m.zip
(and optionallyzowe-cli-plugins-v.r.m.zip
) to a preferred location on your computer.Open a command-line window. Issue the following commands in sequence against the extracted directory to install core Zowe CLI on your computer:
Notes:
- If the command returns an
EACCESS
error, refer to Resolving EACCESS permissions errors when installing packages globally in the npm documentation. - On Linux, you might need to prepend
sudo
to yournpm
commands. For more information, see Troubleshooting Zowe CLI.
- If the command returns an
(Optional) Issue the following command to install each available plug-in:
Note: The IBM Db2 plug-in requires additional configuration.
Zowe CLI is installed on your computer. Issue the zowe --help
command to view a list of available commands. For information about how to connect the CLI to the mainframe (using command-line options, user profiles, or environment variables), see Defining CLI connection details. You can also test your connection to z/OSMF with or without a profile.
#
Installing Zowe CLI from an online registryIf your computer is connected to the Internet, you can use the following method to install Zowe CLI from an npm registry.
Follow these steps:
Address the following software requirements:
Install Node.js V8.0 or higher LTS versions
Tip: You might need to restart the command prompt after installing Node.js. Issue the command
node --version
to verify that Node.js is installed.Verify that you have Node Package Manager (npm) that is compatible with your version of Node.js. For a list of compatible versions, see Node.js Previous Releases.
Tip: npm is included with the Node.js installation. Issue the command
npm --version
to verify the version of npm that is installed.(Optional) If you plan to install plug-ins, review the Software requirements for CLI plug-ins.
Issue the following commands in sequence to install the core from the public npm registry. The "core" includes Zowe CLI and Secure Credential Store, which enhances security by encrpyting your username and password.
Notes:
- If the command returns an
EACCESS
error, refer to Resolving EACCESS permissions errors when installing packages globally in the npm documentation. - On Linux, you might need to prepend
sudo
to yournpm
commands. For more information, see Troubleshooting Zowe CLI.
- If the command returns an
(Optional) To install all available plug-ins to Zowe CLI, issue the following command:
Note: The IBM Db2 plug-in requires additional configuration.
After you install and configure Zowe CLI, issue the zowe --help
command to view a list of available commands. For information about how to connect the CLI to the mainframe (using command-line options, user profiles, or environment variables), see Defining CLI connection details. You can also test your connection to z/OSMF with or without a profile.