Follow these instructions to gather specific pieces of information to help troubleshoot Zowe™ CLI issues.
Issue the following command:
The exact Zowe CLI version may vary depending upon if the
@lts-incremental version is installed.
@zowe-v1-lts and the
@latest (forward-development) version tags:
@lts-incremental version tag:
More information regarding versioning conventions for Zowe CLI and plug-ins is located in Versioning Guidelines.
Issue the following command:
The output describes version and the registry information.
The following settings are configurable via environment variables:
Environment variables are available to specify logging level and the CLI home directory.
Important! Setting the log level to TRACE or ALL might result in "sensitive" data being logged. For example, command line arguments will be logged when TRACE is set.
|Zowe CLI logging level||Log4JS log levels (OFF, TRACE, DEBUG, INFO, WARN, ERROR, FATAL)||DEBUG|
|Imperative CLI Framework logging level||Log4JS log levels (OFF, TRACE, DEBUG, INFO, WARN, ERROR, FATAL)||DEBUG|
You can set the location on your computer for the Zowe CLI home directory, which contains log files, profiles, and plug-ins for the product.
Tip! The default
.zowe folder is created when you issue your first Zowe CLI command. If you change the location of the folder, you must reinstall plug-ins and recreate or move profiles and log files that you want to retain. In some cases, you might want to maintain a different set of profiles in multiple folders, then switch between them using the environment variable.
|Zowe CLI home directory location||Any valid path on your computer||C:\Users\<username>\.zowe|
The values for these variables can be echoed.
There are two sets of logs to be aware of:
Imperative CLI Framework log, which generally contains installation and configuration information.
Zowe CLI log, which contains information about interaction between CLI and the server endpoints.
Analyze these logs for any information relevant to your issue.
profiles folder stores connnection information.
Important! The profile directory might contain "sensitive" information, such as your mainframe password. You should obfuscate any sensitive references before providing configuration files.
Zowe CLI is compatible with the currently supported Node.js LTS versions. For an up-to-date list of supported LTS versions, see Node.js.org.
To gather the Node.js and npm versions installed on your computer, issue the following commands:
If you are having trouble installing Zowe CLI from an npm registry, gather your npm configuration to help identify issues with registry settings, global install paths, proxy settings, etc...
In case of errors, npm creates log files in the
npm_cache\_logs location. To get the
npm_cache location for a specific OS, run the following command:
By default, npm keeps only 10 log files, but sometimes more are needed. Increase the log count by issuing the following command:
This command increases the log count to 50, so that more log files will be stored on the system. Now you can run tests multiple times and not lose the log files. The logs can be passed to Support for analysis.
As the log files are created only when an npm conmmand fails, but you are interested to see what is executed, you can increase the log level of npm. Issue the following command:
With this change, you can see all actions taken by npm on the stdout. If the command is successful, it still does not generate a log file.
The available log levels are: "silent", "error", "warn", "notice", "http", "timing", "info", "verbose", "silly", and "notice". "Notice" is the default.
Alternatively, you can pass
--loglevel verboseon the command line, but this only works with npm related commands. By setting log level in the config, it also works when you issue some
zowecommands that use npm (for example,
zowe plugins install @zowe/cics).