Gitlab CLI glab
Config is stored in ~/.config/glab-cli/
. Change it using:
glab config set
Authentication
alex@p52 ~/Projects/asokolsky.gitlab.io master glab auth status
gitlab.com
✓ Logged in to gitlab.com as asokolsky (/home/alex/.config/glab-cli/config.yml)
✓ Git operations for gitlab.com configured to use https protocol.
✓ API calls for gitlab.com are made over https protocol
✓ REST API Endpoint: https://gitlab.com/api/v4/
✓ GraphQL Endpoint: https://gitlab.com/api/graphql/
✓ Token: **************************
To re-authenticate:
glab auth login
Project-specific Credentials
Set GLAB_CONFIG_DIR:
cd project_dir/
mkdir .glconfig
export GLAB_CONFIG_DIR=`pwd`/.glconfig