Zowe CLI — A Faster Experience
{Core}
For the next major version of Zowe CLI — we plan to add the ability to run it in daemon mode for faster response time.
Please see the latest updates to daemon mode
Definition
First, daemon is a:
(noun)
Also, it’s pronounced this way:
Why
Sometimes Zowe CLI commands are slow depending on operating system, system configuration, and other running software (like antivirus). On my system, zowe -h
can take nearly 3 seconds to run:
Running Zowe CLI in daemon mode (indicated by zowex
command), the same command completes in under a second:
Other zowe ... --help
commands, like zowex jobs --help
are even faster in daemon mode, ~0.10 seconds.
How
With the @next
version of Zowe CLI, it can run as a background process. Then, a native-built Zowe CLI client, zowex
, communicates with the background Zowe CLI process.
Since the client is native for the machine it’s running on (versus running in a VM), it executes very quickly.
Try it Out!
To try this for yourself:
- install the
next
version of Zowe CLI,npm install -g @zowe/cli@next
- verify the installed version via
zowe -V
, it should be7.0.0+
- obtain the native client, unzip, and add to your
PATH
Start the Daemon
To run Zowe CLI in the background, run zowe --daemon
in the background. E.g:
- Windows →
start zowe --daemon
- Linux →
zowe --daemon &
Then communicate with the daemon using zowex
:
Known Issues
Please open issues for any defects that you may find.
Summary
The implementation, setup, and even the top level command name for Zowe CLI daemon mode are all subject to change based on validation feedback. In the meantime, please consider trying out daemon mode and comment here for questions or open issues in our repo.