1. 安装cli 工具
linux
curl -L https://github.com/drone/drone-cli/releases/download/v0.8.5/drone_linux_amd64.tar.gz | tar zx
sudo install -t /usr/local/bin drone
mac
curl -L https://github.com/drone/drone-cli/releases/download/v0.8.5/drone_darwin_amd64.tar.gz | tar zx
sudo cp drone /usr/local/bin
2. 全部命令
build manage builds
deploy deploy code
exec execute a local build
info show information about the current user
registry manage registries
secret manage secrets
repo manage repositories
user manage users
server manage servers
autoscale manage autoscaling
help, h Shows a list of commands or help for one command
registry 可以进行容器镜像仓库的管理(包括密钥)
secret 存储一些项目敏感的信息,比如密码,账户信息,数据库信息
repo git 代码管理
build 项目构建的一些操作,比如查看信息,启动构建
deploy 执行项目的部署
http://docs.drone.io/cli-installation/
原文:https://www.cnblogs.com/rongfengliang/p/8981949.html