Jenkins

Jenkins CI/CD commands for automation and deployment

13 commands
Search & Copy
Save Favorites
13
Total Commands
100%
Free Access
Lightning Fast

Available Commands

Click on any command to copy it instantly

13 commands available
13 of 13
Resources

Learn Jenkins

Master Jenkins CI/CD automation

jenkins

List All Jobs

List all jobs in Jenkins

java -jar jenkins-cli.jar -s http://localhost:8080/ list-jobs
jenkins
jobs
list
jenkins

Build Job

Trigger a build for a specific job

java -jar jenkins-cli.jar -s http://localhost:8080/ build my-job
jenkins
job
build
jenkins

Get Job Configuration

Retrieve the XML configuration of a job

java -jar jenkins-cli.jar -s http://localhost:8080/ get-job my-job
jenkins
job
config
jenkins

Create New Job

Create a new Jenkins job from an XML config

java -jar jenkins-cli.jar -s http://localhost:8080/ create-job new-job < config.xml
jenkins
job
create
jenkins

Update Job Configuration

Update an existing Jenkins job with new XML config

java -jar jenkins-cli.jar -s http://localhost:8080/ update-job my-job < config.xml
jenkins
job
update
jenkins

Delete Job

Remove a Jenkins job

java -jar jenkins-cli.jar -s http://localhost:8080/ delete-job my-job
jenkins
job
delete
jenkins

Enable Job

Enable a disabled job

java -jar jenkins-cli.jar -s http://localhost:8080/ enable-job my-job
jenkins
job
enable
jenkins

Disable Job

Disable a job to prevent execution

java -jar jenkins-cli.jar -s http://localhost:8080/ disable-job my-job
jenkins
job
disable
jenkins

List Installed Plugins

Show all installed Jenkins plugins

java -jar jenkins-cli.jar -s http://localhost:8080/ list-plugins
jenkins
plugins
list
jenkins

Install Plugin

Install a plugin via CLI

java -jar jenkins-cli.jar -s http://localhost:8080/ install-plugin git
jenkins
plugin
install
jenkins

Restart Jenkins

Restart Jenkins safely

java -jar jenkins-cli.jar -s http://localhost:8080/ safe-restart
jenkins
restart
server
jenkins

Get Build Information

Retrieve details about a specific build

java -jar jenkins-cli.jar -s http://localhost:8080/ get-build my-job 15
jenkins
build
info
jenkins

View Console Output

Fetch console output of a build

java -jar jenkins-cli.jar -s http://localhost:8080/ console my-job 15
jenkins
console
output

Missing a command?

Help us improve this collection by suggesting commands that should be added. Your contributions help the entire developer community!