GH-WORKFLOW-DISABLE(1)

πŸ’… gh-workflow-disable β€” the GitHub CLI manual, bestie edition πŸŽ€

okay so real talk, this is a page from the GitHub CLI manual (gh), and today we're talking about gh-workflow-disable. yes it does exactly what it says on the tin and yes it slays at doing it πŸ’–


✨ NAME ✨

gh-workflow-disable β€” literally just disables a workflow. that's her whole job. iconic honestly πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

gh workflow disable [<workflow-id> | <workflow-name>] [flags]

so you can point at a workflow by its <workflow-id> or by its <workflow-name> β€” dealer's choice, no cap 🫢 and then there's [flags] if you're feeling extra.


🌸 DESCRIPTION 🌸

okay so here's the vibe: this bad girl disables a workflow, which means it stops it from running, AND it stops it from showing up when you're listing workflows. two-for-one behaviour, we love to see it ✨

like, gone-gone. not running, not listed. she's on a break, do not disturb πŸ’…


πŸ’œ OPTIONS INHERITED FROM PARENT COMMANDS πŸ’œ

not me having to explain that these flags came from the parent command β€” they're hand-me-downs but make them work, fr fr 🧚

  • -R, --repo <[HOST/]OWNER/REPO> β€” picks a different repository for you, and you write it in the [HOST/]OWNER/REPO format. that's the whole thing. use it when you're not already sitting in the repo you care about 🌈

⭐ EXIT CODES ⭐

the little numbers she gives you when she's done β€” read them, they're telling you something 🫢

  • 0 β€” successful execution. we ate and left no crumbs πŸ’–
  • 1 β€” error. something went sideways 😭
  • 2 β€” command canceled. you (or something) hit the brakes πŸ’€
  • 4 β€” authentication required. gotta log in first babes πŸ™ˆ
NOTE: specific commands may have additional exit codes β€” go check that command's help for more info, iykyk πŸ“–

πŸ”₯ SEE ALSO πŸ”₯

  • gh-workflow(1) β€” the main character herself, go read that one next πŸ‘‘

and that's the whole page, bestie!! πŸ“

this came to you from GitHub CLI v2.102.0, dated Oct 2026 β€” so like, remember her when she's famous. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from