Using Daemon Mode (Technical Preview)
Using Daemon Mode (Technical Preview)
If you already installed the supported version @zowe-v1-lts
, switch versions to try this feature. Daemon mode will be included in the next major Zowe release, V2.0.0-LTS. You can also install the @next release of Zowe CLI.
Table of Contents:
#
Feature overviewDaemon Mode significantly improves the performance of Zowe CLI commands by running Zowe CLI as a persistent background process (daemon).
#
Install the zowe native executableYou can download and install the zowe native executable from Zowe Downloads (preferred) or from the Zowe Github repository. To install the zowe native executable from Zowe Downloads, see Install Zowe CLI from a download.
To download and install the zowe native executable from the Zowe Github repository:
- Navigate to the Zowe CLI GitHub repository
- Under the Release section, click Native Client Release. The Download page is displayed.
- Click the link to download the executable (.tgz file) for your operating system.
- Unzip the zowe .tgz file and place the zowe (or zowe.exe) file into a directory which occurs on your PATH earlier than the directory containing the NodeJS zowe command.
Note: The Mac executable may need an exception for an unidentified developer: Open a Mac app from an unidentified developer
#
Running zowe commands with the zowe executableVerify that you have installed the @next release of Zowe CLI and the zowe native executable.
Run any zowe command as you normally would. The first time you run any zowe command, the command will automatically start a daemon in the background. It will then run your desired command. Since that first command must start the daemon, that first zowe command will actually run slower than a traditional zowe command. However, every zowe command afterward will run significantly faster. The daemon will continue to run in the background until you close your terminal window.
Example:
zowe --versionStarting a background process to increase performance ...7.0.0-next.202110211759
zowe --version7.0.0-next.202110211759