CLI tool for gitlab's API:
https://python-gitlab.readthedocs.io/en/stable/cli.html
pip3 install --user python-gitlab
$EDITOR ~/.python-gitlab.cfg
Sample config for gitlab's main site, but you can add your own local instances too:
[global]
default = gitlab
ssl_verify = true
timeout = 5
[gitlab]
url = https://gitlab.com
private_token = <insert API token here>
api_version = 4
Use:
gitlab issue list