sudo dnf install 'dnf-command(config-manager)'
sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
sudo dnf install gh --repo gh-cli
gh auth login
? Where do you use GitHub? GitHub.com
? What is your preferred protocol for Git operations on this host? HTTPS
? Authenticate Git with your GitHub credentials? Yes
? How would you like to authenticate GitHub CLI? Paste an authentication token
Tip: you can generate a Personal Access Token here https://github.com/settings/tokens
The minimum required scopes are 'repo', 'read:org', 'workflow'.
? Paste your authentication token: ****************************************
- gh config set -h github.com git_protocol https
✓ Configured git protocol
! Authentication credentials saved in plain text
✓ Logged in as thoughtful-solutions
gh repo list
gh repo list SelectIDLtd
gh api repos/SelectIDLtd/AuditServer/collaborators
gh api orgs/SelectIDLtd/teams
gh api orgs/SelectIDLtd/teams/selectid-read/members
gh api users/thoughtful-solutions
gh api search/users --method=GET -f q="[email protected] in:email"
notice that for some queries you cannot use the names of the team or organisation you have to use the numeric team value.
gh api orgs/SelectIDLtd/teams
gh api organizations/173607686/team/10596797/members