currents api

Learn how to get data from Currents API using currents api CLI command

currents api is a CLI command for fetching data from Currents API the data is returned in JSON format.

Usage

The command requires the --project-id and --api-key from Currents to authenticate the request and provide the required data. Alternatively, you can set the CURRENTS_PROJECT_ID and CURRENTS_API_KEY environment variables.

Obtain run data using the CI Build ID by running the following command:

npx currents api get-run --ci-build-id <ci-build-id> --output path/to/save/run.json

Obtain the last completed run details, filtered by --branch and/or --tag

npx currents api get-run --branch <branch> --tag <tag-1,tag-2,...tag-n>

Last updated