是什么 ? | : | a command-line tool that automates access to Artifactory, Bintray and Mission Control through their respective REST APIs. |
开发语言 | : | golang |
官方主页 | : | https://jfrog.com/getcli |
源码仓库 | : | https://github.com/jfrog/jfrog-cli |
操作系统 | 包管理器 | 安装命令 |
---|---|---|
All | npm | npm install -g jfrog-cli-go |
Windows | scoop | scoop install jfrog-cli |
Windows | Chocolatey | choco install -y jfrog-cli |
macOS | HomeBrew | brew install jfrog-cli |
GNU/Linux | HomeBrew | brew install jfrog-cli |
apt | sudo apt-get install -y jfrog-cli | |
CentOS | yum | sudo yum install -y jfrog-cli |
dnf | sudo dnf install -y jfrog-cli | |
openSUSE | zypper | sudo zypper install -y jfrog-cli |
Alpine Linux | apk | sudo apk add jfrog-cli |
pacman | sudo pacman -Syyu --noconfirm | |
Gentoo Linux | Portage | sudo emerge jfrog-cli |
step1、安装依赖
所有时 | Terminal + Shell |
下载时 | cURL |
运行时 |
|
step2、下载并运行安装脚本
curl -fL https://getcli.jfrog.io | sh
step1、安装依赖
所有时 | Terminal + Shell |
下载时 | git |
编译时 | GoToolchain |
运行时 |
|
step2、设置GOPATH
等环境变量
export GOPATH=~/go/jfrog-cli
export GO111MODULE=auto
export GOPROXY=https://goproxy.io
step3、使用go get下载jfrog-cli
源码并编译
go get -v github.com/jfrog/jfrog-cli
step4、将$GOPATH/bin/jfrog
安装到/usr/local/bin/
目录中
sudo install -o $(whoami) -m 755 $GOPATH/bin/jfrog /usr/local/bin/
docker run --rm releases-docker.jfrog.io/jfrog/jfrog-cli jfrog -v
在Bintray中创建一个包:
jfrog bt pc --vcs-url=https://github.com/leleliu008 fpliu/newton/alipay
上传文件到Bintray的某个包中:
jfrog bt u --override --publish --flat=false "*" "fpliu/newton/alipay/2018.06.01" "com/fpliu/alipay/"