Getting Started with the CLI

by bradrydzewski

The Drone command line tools are used to interact with the Drone from the command line, and provides important utilities for managing users and repository settings.

Install Binaries

Download and install the raw binaries by platform:

Platform Download
Linux x64 tarball, sha256
Linux arm64 tarball, sha256
Linux arm tarball, sha256
Windows x64 tarball, sha256
Darwin x64 tarball, sha256

Install on Linux

Download and install on Linux:

curl http://downloads.drone.io/release/linux/amd64/drone.tar.gz | tar zx
sudo install -t /usr/local/bin drone

Install on OSX

Download and install on OSX:

curl http://downloads.drone.io/release/darwin/amd64/drone.tar.gz | tar zx
sudo cp drone /usr/local/bin

Download and install on OSX using Homebrew:

brew tap drone/drone
brew install drone --devel

Authorization

You will need to provide the Drone command line tools with your server address and personal access token. You can retrieve a Drone personal access token from your user profile screen.

export DRONE_SERVER=http://drone.mycompany.com
export DRONE_TOKEN=...

You can confirm the above configuration by running the below command:

$ drone info
User: octocat
Email: octocat@github.com

Commands