Skip to content

Install the CLI

The drape CLI uploads test results, coverage reports, and other data to Drape from any environment.

Homebrew

brew install drape-io/tap/drape

GitHub Releases

Download the latest binary from GitHub Releases:

curl -sL https://github.com/drape-io/drape-cli/releases/latest/download/drape_darwin_arm64.tar.gz | tar xz
chmod +x drape
sudo mv drape /usr/local/bin/
curl -sL https://github.com/drape-io/drape-cli/releases/latest/download/drape_darwin_amd64.tar.gz | tar xz
chmod +x drape
sudo mv drape /usr/local/bin/
curl -sL https://github.com/drape-io/drape-cli/releases/latest/download/drape_linux_amd64.tar.gz | tar xz
chmod +x drape
sudo mv drape /usr/local/bin/

Release archives are named drape_{os}_{arch}.tar.gz, so the /latest/download/ URLs above always point to the most recent release.

Docker

docker run --rm ghcr.io/drape-io/drape-cli version
docker run --rm -v $(pwd):/work -w /work ghcr.io/drape-io/drape-cli upload tests "**/*.xml"

Verify Installation

drape version

Authentication

Set your API key as an environment variable:

export DRAPE_API_KEY=drape_tok_xxxx

Or pass it directly:

drape upload tests results.xml --api-key drape_tok_xxxx