WARNING: Jenkins X version 2.x is unmaintained. Do not use it.
Please refer to the v3 documentation for the latest supported version.
安装 jx
如何在你的机器上安装jx二进制包
Categories:
根据你的操作系统选择最适合的指令:
macOS
在 Mac 上你可以使用 brew:
brew install jenkins-x/jx/jx
或者,如果您尚未安装 brew ,并且喜欢手动安装的话,请执行如下指令安装:
- Download the
jxbinary archive usingcurland pipe (|) the compressed archive to thetarcommand:
curl -L "https://github.com/jenkins-x/jx/releases/download/$(curl --silent https://api.github.com/repos/jenkins-x/jx/releases/latest | jq -r '.tag_name')/jx-darwin-amd64.tar.gz" | tar xzv "jx"
or, if you don't have `jq` installed:
curl -L "https://github.com/jenkins-x/jx/releases/download/$(curl --silent "https://github.com/jenkins-x/jx/releases/latest" | sed 's#.*tag/\(.*\)\".*#\1#')/jx-darwin-amd64.tar.gz" | tar xzv "jx"
- Install the
jxbinary by moving it to a location which should be on your environments PATH, using themvcommand:
sudo mv jx /usr/local/bin
- Run
jx versionto make sure you’re on the latest stable version
jx version
Linux
To install Jenkins X on Linux, download the .tar file, and unarchive it in a directory where you can run the jx command.
- Download the
jxbinary archive usingcurland pipe (|) the compressed archive to thetarcommand:
curl -L "https://github.com/jenkins-x/jx/releases/download/$(curl --silent https://api.github.com/repos/jenkins-x/jx/releases/latest | jq -r '.tag_name')/jx-linux-amd64.tar.gz" | tar xzv "jx"
or, if you don't have `jq` installed:
curl -L "https://github.com/jenkins-x/jx/releases/download/$(curl --silent "https://github.com/jenkins-x/jx/releases/latest" | sed 's#.*tag/\(.*\)\".*#\1#')/jx-linux-amd64.tar.gz" | tar xzv "jx"
- Install the
jxbinary by moving it to a location which should be on your environments PATH, using themvcommand:
sudo mv jx /usr/local/bin
- Run
jx versionto make sure you’re on the latest stable version
jx version
Windows
-
如果你使用 Chocolatey,那么这里有一个 可用的包。
要安装
jx二进制请运行:
choco install jenkins-x
要升级 jx 二进制请运行:
choco upgrade jenkins-x
scoop install jx
要升级 jx 二进制请运行:
scoop update jx
其他平台
下载二进制包 jx 然后加到环境变量 $PATH 中
或者,你可以尝试 自行构建。然而,如果你要自行构建的话,请注意移除所有旧版本的 jx 二进制文件,这样你的本地构建才会出现在环境变量 $PATH 的第一位 :)
获得帮助
查找可用的命令类型:
jx
或者,获取指定命令的帮助,例如: create 命令,可以输入:
jx help create
你也可以浏览 jx 命令参考文档
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified April 27, 2020: feat: moving contributing section to top level (1cd22344f4)