---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# jenkins-cli

> An open-source automation server that facilitates the automation of software development lifecycle.
> More information: <https://www.jenkins.io/doc/>.

- Connect to jenkins CLI:

`java -jar jenkins-cli.jar -s {{jenkins_server_url}} -auth {{username}}:{{api_token}}`

- Restart jenkins:

`java -jar jenkins-cli.jar -s {{jenkins_server_url}} restart`

- Shutdown jenkins:

`java -jar jenkins-cli.jar -s {{jenkins_server_url}} shutdown`

- Display help:

`java -jar jenkins-cli.jar -s {{jenkins_server_url}} help`

- Display version:

`java -jar jenkins-cli.jar -s {{jenkins_server_url}} version`
