Install the CLI¶
The drape CLI uploads test results, coverage reports, and other data to Drape from any environment.
Homebrew¶
GitHub Releases¶
Download the latest binary from GitHub Releases:
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¶
Authentication¶
In GitHub Actions, the CLI (v0.10.0 or later) needs no API key. Give the job id-token: write and the CLI uploads with the job's GitHub OIDC token. See No API key needed.
Everywhere else, set your API key as an environment variable:
Or pass it directly:
An API key always wins over a GitHub OIDC token.