jfrog-cli
1.1、jfrog-cli简介
是什么 ?: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
1.2、通过包管理器安装jfrog-cli
操作系统包管理器安装命令
Allnpmnpm install -g jfrog-cli-go
Windowsscoopscoop install jfrog-cli
WindowsChocolateychoco install -y jfrog-cli
macOSHomeBrewbrew install jfrog-cli
GNU/LinuxHomeBrewbrew install jfrog-cli
aptsudo apt-get install -y jfrog-cli
CentOSyumsudo yum install -y jfrog-cli
dnfsudo dnf install -y jfrog-cli
openSUSEzyppersudo zypper install -y jfrog-cli
Alpine Linuxapksudo apk add jfrog-cli

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm jfrog-cli
Gentoo LinuxPortagesudo emerge jfrog-cli
1.3、通过下载并运行安装脚本安装jfrog-cli

step1、安装依赖

所有时Terminal + Shell
下载时cURL
运行时
  • glibc ( libc.solibpthread.sold-linux-x86-64.so )

step2、下载并运行安装脚本

curl -fL https://getcli.jfrog.io | sh
1.4、通过go get编译源码安装jfrog-cli

step1、安装依赖

所有时Terminal + Shell
下载时git
编译时GoToolchain
运行时
  • glibc ( libc.solibpthread.sold-linux-x86-64.so )

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/
1.5、jfrog-cli Docker Image
docker run --rm releases-docker.jfrog.io/jfrog/jfrog-cli jfrog -v
1.6、jfrog命令

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/"