GH-RULESET-LIST(1)
β¨ GH-RULESET-LIST π
okay so bestie, this is the gh-ruleset-list page from the GitHub CLI manual β it's the one that shows you all the rulesets chilling on a repo or an org π (the man page header calls it GH-RULESET-LIST(1), very official, very demure).
πΈ NAME πΈ
gh-ruleset-list β list rulesets for a repository or organization, periodt β¨
π SYNOPSIS π
gh ruleset list [flags]
π¦ DESCRIPTION π¦
So you wanna see the GitHub rulesets for a repository or an organization? Say less, bestie, that's literally the whole job π
If you don't pass any options at all, it lists the rulesets of the current repository β like, wherever you're standing right now. Want to peek at a different repo's rulesets instead? Use the --repo flag, easy. And if your heart desires organization-wide rulesets, hit the --org flag and it'll list the rulesets configured for the org you hand it π«Ά
Now here's the cute part: the --parents flag controls whether rulesets configured at higher levels β the ones that also apply to the repo or org you passed β get returned too. The default is true, so yes, you're getting the whole family tree by default π
β οΈ okay heads up, this one's important: your access token must have theadmin:orgscope to use the--orgflag. You can grant it by runninggh auth refresh -s admin:orgπ₯
π OPTIONS π
-L,--limit <int>(default30) β maximum number of rulesets to list, capisce? π-o,--org <string>β list the organization-wide rulesets for the organization you provide-p,--parents(defaulttrue) β whether to include rulesets configured at higher levels that also apply-w,--webβ open the list of rulesets in the web browser, for when you'd rather vibe with the UI π¦
π OPTIONS INHERITED FROM PARENT COMMANDS π
-R,--repo <[HOST/]OWNER/REPO>β select another repository using the[HOST/]OWNER/REPOformat (yes, keep that format exactly, it's iconic)
β ALIASES β
gh rs ls, gh ruleset ls β short and sweet, iykyk π«
π₯ EXIT CODES π₯
0: Successful execution π1: Error π2: Command canceled π4: Authentication required π
π NOTE: specific commands may have additional exit codes. Refer to the command's help for more information β don't come for me, come for the help text.
πΈ EXAMPLE πΈ
# List rulesets in the current repository
$ gh ruleset list
# List rulesets in a different repository, including those configured at higher levels
$ gh ruleset list --repo owner/repo --parents
# List rulesets in an organization
$ gh ruleset list --org org-name
π§ SEE ALSO π§
gh-ruleset(1) β go say hi to the parent, bestie π«Ά
and that's the whole page, no cap β¨ this was GitHub CLI v2.102.0, dated Oct 2026, and honestly? she ate. mwah π
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms