Assuming you have installed OWASP ZAP, the installation of the ZAP-CLI can be easily done with this command:
$ pip install --upgrade zapcli
To ensure the success of the ZAP-CLI installation, you may try this command with help options:
$ zap-cli quick-scan --help