Jenkins has a built-in command line interface that allows you to access Jenkins from a script or from your shell. This is convenient for automation of routine tasks, bulk updates, trouble diagnosis, and so on.
This interface is accessed via the Jenkins CLI client, which is a Java JAR file distributed with Jenkins.
You can download the JAR file for the client from the URL “
/jnlpJars/jenkins-cli.jar” on your Jenkins server, e.g. https://jenkins.example.com/jnlpJars/jenkins-cli.jar
E.g. for `help`, use:
java -jar /var/lib/jenkins/cli/jenkins-cli.jar -auth <jenkins username>:<jenkins password> -s http://localhost:8080 help
Other options (instead of help):