I am able to run the jenkins cli commands from my local but not within the jenkins server itself.
java -jar jenkins-cli.jar -s -aut