Re: Command line query for teams
From: Michiel Beijen <hidden>
Date: 2025-12-04 08:35:15
Hi Mark, On Thursday, December 4th, 2025 at 06:10, Mark Boonie [off-list ref] wrote:
I'm a git very-newbie, still trying to find my way around, so I apologize if the answer to this question is somewhere obvious to everyone but me. I'm looking for a command that will return the teams that I'm on. Someone gave me the URL https://github.ibm.com/orgs/ztpf/teams?query=+members%3Ame, which gives me the information in a GUI, but I would like to get the information from the command line. Any suggestions?
What you're looking for is not a git feature but a feature from GitHub. GitHub takes the git source control system and adds authentication, issues and pull requests and many more things 'on top'. GitHub has their own command line utility called 'gh' that you can install, see https://cli.github.com/ However it does not expose the info you're looking for directly. You can use it to request the teams in a given organization, and then you can request for each teams the members and check if you are in it. I hope this helps, -- Michiel