Using the Jenkins CLI tool

1 minute readautomation
You must have obtained the Jenkins CLI tool prior to using the Jenkins CLI tool.
To use the Jenkins CLI tool:
  1. In a terminal/command prompt (window), change to the directory containing the jenkins-cli.jar file:

  2. Enter the command:

    java -jar jenkins-cli.jar -s http://operations-center-url:port-number/ command


    • operations-center-url is the URL of the Operations Center.

    • port-number is the HTTP port through which Operations Center is accessible.

    • command is the Jenkins CLI command you want to execute.

    To obtain a list of all options (like -s above or -auth for authentication) that can be passed to the
    jenkins-cli.jar command itself, enter the command:

    java -jar jenkins-cli.jar -h