Skip to content

Instantly share code, notes, and snippets.

@adunstan
Last active March 4, 2024 01:55
Show Gist options
  • Save adunstan/bd50b322e3507bc377134eb6ee1a6974 to your computer and use it in GitHub Desktop.
Save adunstan/bd50b322e3507bc377134eb6ee1a6974 to your computer and use it in GitHub Desktop.
gitlab get list of repos via API
curl --header "Authorization: Bearer <your_access_token>" https://gitlab.example.com/api/v4/projects |
jq -c -r '.[]|[.http_url_to_repo, .visibility]'
# works with private token or OAuth token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment