0.0.1-1 • Published 2 years ago

buildkite-cli v0.0.1-1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Buildkite CLI for Node.js

Work in progress!

Access the Buildkite API commands from Node.js.

This project will expose the publically available Buildkite APIs (REST API and GraphQL API) as well as provides additional helpful utility commands for common use cases (e.g. retrying failing jobs).

These can be consumed programmatically via module imports, or from the command line (via npx).

Setup

A valid Buildkite API token is required for use. You can create ane edit API Access tokens here.

Once generated, add the following to your ~/.bashrc (or equivalent):

export BUILDKITE_API_TOKEN="<TOKEN>"

Examples

Retry all failed jobs for a build:

$ npx buildkite-cli retry <BUILDKITE_URL>