Open In App

How To List All The Jenkins Plugins Configured In CLI ?

Jenkins is an open-source automation server that plays an important role in Continuous Integration and Continuous Deployment (CI/CD) in the software development life cycle (SDLC). Jenkins plugins are the extensions that will enhance the functionalities of Jenkins like source code management, building, testing, artifact management, notifications, monitoring, security, logging, scripting, automation, cloud integration, and many more.

What is Command-Line-Interface (CLI)?

A Command Line Interface (CLI) is a text-based interface that allows users to interact with a computer or software with the help of commands and scripts in a specific syntax. When a user types instructions into a terminal or console in a CLI, the system outputs text in response. Typically, the user enters precise commands and parameters, and the system carries out the required action while text-based feedback or results are provided.



Understanding the Dynamics and Impact of Installed Plugins

To More Continuous Integration and Continuous Deployment (CI/CD).

Limitations Of Direct CLI Commands

Step-By-Step Process To List All Jenkins Plugins Configured In CLI

Step 1: Access the Jenkins server and download the Jenkins-cli.jar file.

sudo wget http://your.jenkins.url/ jnlpJars/jenkins-cli.jar



Step 2 : Access Jenkins dashboard and get API token.

Step 3 : Authentication with API token.

java -jar jenkins-cli.jar -s http://your.jenkins.url/ -auth username:API_token

Step 4 : List all Jenkins plugins using the below command.

java -jar jenkins-cli.jar -s http://your.jenkins.url/ -auth username:API_token list-plugins

Jenkins Plugins – FAQ’s

Do I Need To Install Jenkins CLI Separately?

No, Jenkins has a built-in CLI, In order to interact we need to download jenkins-cli.jar file on the machine and give proper authentication like API token or SSH.

How do I know if my Jenkins server requires authentication for CLI?

If your Jenkins server is configured with security (username/password or API token), you will be prompted for credentials when running CLI commands.

Can I run Jenkins CLI commands from any machine?

Yes, If you have network access to the Jenkins server. You need to download the Jenkins CLI JAR file on the machine from where you want to run the commands.

How to update the list of plugins if new ones are installed?

You can rerun the list-plugins command. It fetches the latest information from the Jenkins server and displays the updated list.

Are there any other useful Jenkins CLI commands?

Yes, there are many Jenkins CLI commands for various tasks. The available commands you can find in Jenkins CLI under Manage Jenkins option.

Example: build, console, connect-node, copy-job, list-jobs etc…


Article Tags :