/ Command Line

Jenkins CLI allows you manage your Jenkins as an easy way

Jenkins CLI allows you manage your Jenkins as an easy way

Jenkins CLI

Jenkins CLI allows you manage your Jenkins in an easy way. No matter if you're a plugin developer, administrator or just a regular user, it is made for you!

Features

  • Multiple Jenkins support
  • Plugins management (list, search, install, upload)
  • Job management (search, build, log)
  • Open your Jenkins with a browser
  • Restart your Jenkins
  • Connection with proxy support

Get it

We support Mac, Linux and Windows for now.

Mac

You can use brew to install jcli.

brew tap jenkins-zh/jcli
brew install jcli

Linux

To install jcli on your Linux OS, execute the following command:

curl -L https://github.com/jenkins-zh/jenkins-cli/releases/latest/download/jcli-linux-amd64.tar.gz|tar xzv
sudo mv jcli /usr/local/bin/

Windows

You can find the latest version here. Download the tar file and copy the uncompressed jcli directory into your system path.

Other package managers

Here are other package managers:

  • GoFish users can use gofish install jcli
  • Scoop users can use scoop install jcli

If you cannot download jcli from GitHub, please try the following ways:

jcli_id=$(docker create jenkinszh/jcli) && sudo docker cp $jcli_id:/usr/local/bin/jcli /usr/local/bin/jcli && docker rm -v $jcli_id

Download different version of OS? Just need to change the docker image tag:

image description
jenkinszh/jcli Linux
jenkinszh/jcli:darwin Mac
jenkinszh/jcli:win Windows, you can find it from /usr/local/bin/jcli.exe
jenkinszh/jcli:dev Developing version, find can find them from /bin/linux/jcli or /bin/darwin/jcli or /bin/windows/jcli.exe

Want to try the latest features? Download the developing version of different platform:

  • jcli_id=$(docker create jenkinszh/jcli:dev) && sudo docker cp $jcli_id:/bin/linux/jcli . && docker rm -v $jcli_id
  • jcli_id=$(docker create jenkinszh/jcli:dev) && sudo docker cp $jcli_id:/bin/darwin/jcli . && docker rm -v $jcli_id
  • jcli_id=$(docker create jenkinszh/jcli:dev) && sudo docker cp $jcli_id:/bin/windows/jcli.exe . && docker rm -v $jcli_id

GitHub