COOPR-564: improve coopr-cli.sh script