Install CLI from Online Registry Via Proxy
This topic describes how to install Zowe CLI using the NPM install command when you are working behind a proxy server. You will need to use this installation method if your site blocks access to public npm.
You can install Zowe CLI from an online registry via proxy on Windows, macOS, or Linux operating systems:
- This method requires access to an internal server that will allow you to connect to the appropriate registries. For other installation methods, see Installing CLI.
- Your default registry must be public npm (or a mirror of public npm).
- If you previously installed the CLI and want to update to a current version, see Update Zowe CLI.
Follow these steps:
Identify the proxy server, including the IP address or hostname and the port number.
If your proxy server does not require login credentials, issue the following commands to add the proxy URL to the NPM config file:
where [proxy_name] is the IP or hostname and [port_number] is the port number of the proxy server.
If your proxy server does require login credentials, issue the following commands to add the proxy URL, with login credentials, to the NPM config file:
where [username] and [password] are the required login credentials, [proxy_name] is the IP or hostname, and [port_number] is the port number of the proxy server.
Ensure that you meet the Software Requirements for CLI.
To install Zowe CLI, issue the following command. On Linux, you might need to prepend sudo to your npm commands:
Install the Secure Credential Store, which lets you store your username, password, and other sensitive information in the credential vault on your computer instead of plaintext. Issue the following command:
(Optional) To install open-source Zowe plug-ins, issue the following command:
Zowe CLI is installed.
(Optional) Verify that a Zowe plug-in is operating correctly.
(Optional) Test the connection to z/OSMF. See Testing Connection to z/OSMF
(Optional) Access the Zowe CLI Help (
zowe --help
) or the Zowe CLI Web Help for a complete reference of Zowe CLI. After you install the CLI, you can connect to the mainframe directly issuing a command, by creating user profiles and making use of them on commands, or by using environment variables. For more information, see Using CLI.