|You must have obtained the Jenkins CLI tool prior to using the Jenkins CLI tool.
In a terminal/command prompt (window), change to the directory containing the
Enter the command:
java -jar jenkins-cli.jar -s http://operations-center-url:port-number/ command
operations-center-urlis the URL of the operations center.
port-numberis the HTTP port through which operations center is accessible.
commandis the Jenkins CLI command you want to execute.
To obtain a list of all options (like
-authfor authentication) that can be passed to the
jenkins-cli.jarcommand itself, enter the command:
java -jar jenkins-cli.jar -h