/usr/local/zend/bin/zs-client.sh addTarget --target=local --zskey=admin --zssecret=<SECRET> --zsversion=8.0
======================================================================
The application has thrown an exception!
======================================================================
Zend\Config\Exception\RuntimeException
File '/root/.zsapi.ini' doesn't exist or not readable
Same goes for regular user (non-root)
File '/home/username/.zsapi.ini' doesn't exist or not readable
Manual fix
touch /home/username/.zsapi.ini
run addTarget command again.
Error
Same goes for regular user (non-root)
Manual fix