gcli-api1
Perform api calls to git forges and retrieve results
Usage
gcli [-a]
path
Overview
The gcli is used to debug API calls. It will autodetect the current forge and perform a request to its REST API. The response is printed to stdout. The API base URL is automatically prepended to the given path.
Options
-
-a, --all -
Fetch all pages of data (follow the pagination link).
Examples
Fetch all pages of data from the issues endpoint of the gcli project. Dump the data into /tmp/foo and be verbose. This will print the queries that are performed to stderr:
$ gcli -v api -a /projects/herrhotzenplotz%2Fgcli/issues >/tmp/foo