Text of cli.github.com › manual › gh_ruleset as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

GitHub CLI | Take GitHub to the command line

CLI manual gh ruleset Repository rulesets are a way to define a set of rules that apply to a repository. These commands allow you to view information about them. Available commands gh ruleset check gh ruleset list gh ruleset view Options -R , --repo <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format ALIASES gh rs Examples $ gh ruleset list $ gh ruleset view --repo OWNER/REPO --web $ gh ruleset check branch-name See also gh