download.md 2.2 KB
Newer Older
1 2
# download

3
## JFrog Bintray
4

5
You can download `jcli` from [bintray.com/jenkins-zh](https://bintray.com/beta/#/jenkins-zh/generic/jenkins-cli/).
6 7 8

`curl -L "https://bintray.com/jenkins-zh/jenkins-cli/download_file?file_path=v0.0.24%2Fjcli-darwin-amd64.tar.gz"|tar xzv`

9 10 11 12 13 14
Get all versions from [here](https://dl.bintray.com/jenkins-zh/generic/jenkins-cli/).

## YUM

Add YUM source repo by the following command:

15
\`\`\`shell script wget [https://bintray.com/jenkins-zh/rpm/rpm](https://bintray.com/jenkins-zh/rpm/rpm) -O /etc/yum.repos.d/bintray-jcli.repo
16

17
```text
LinuxSuRen's avatar
LinuxSuRen 已提交
18 19 20 21 22 23 24 25 26 27 28
then you can install it by: `yum install jcli`

## Debian

Add deb source repo by the following command:

```shell script
echo "deb https://dl.bintray.com/jenkins-zh/deb wheezy main" | sudo tee -a /etc/apt/sources.list
```

then you can install it by: `sudo apt-get install jcli`
29

30
## Image
31

32 33 34 35 36 37
Also you can 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:

38 39 40 41 42 43
| 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` |
44 45 46

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

47 48 49
* `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`
50 51 52 53 54 55 56 57

## Out-of-date

Below distributions are out-of-date. If you want to maintain them, please let us know.

* [GoFish](https://gofi.sh/) users can use `gofish install jcli`
* [Chocolatey](https://chocolatey.org/packages/jcli) users can use `choco install jcli`
* [Snapcraft](https://snapcraft.io/jcli) users can use `sudo snap install jcli`
58