GH-PROJECT-UNLINK(1)
π gh-project-unlink(1) β the GitHub CLI manual, bestie edition π
okay so real talk, this is gh-project-unlink from the GitHub CLI manual, and it's literally the glow-up you need when a project is giving clingy energy and you wanna unlink it. No cap. π
β¨ NAME β¨
gh-project-unlink β unlink a project from a repository or a team π«Ά
Like, it's detachment season and the project is the one getting un-rostered. Not me being dramatic, it's just the facts. π
πΈ SYNOPSIS πΈ
gh project unlink [<number>] [flags]
so yeah, you got your optional <number> (that's the project number, main character energy β¨) and then your flags. That's the whole vibe check. π¦
π OPTIONS π
--owner<string>β the login of the owner, bestie. use"@me"if you're talking about the current user (yes, that's you, icon π ).-R,--repo<string>β the repository that's getting unlinked from this project. bye boo π-T,--team<string>β the team that's getting unlinked</ph> from this project. also bye boo π
π¦ EXIT CODES π¦
these are the receipts, ngl. the exit codes tell you how it went down:
0β successful execution β¨ slay, it worked, we ate.1β error π something went sideways.2β command canceled π you (or something) hit the brakes.4β authentication required π you gotta log in first, bestie, iykyk.
NOTE: specific commands may have additional exit codes. refer to the command's help for more information, fr fr. π
π§ EXAMPLE π§
okay here's the part where it gets iconic. look at these:
# Unlink monalisa's project 1 from her repository "my_repo"
$ gh project unlink 1 --owner monalisa --repo my_repo
# Unlink monalisa's organization's project 1 from her team "my_team"
$ gh project unlink 1 --owner my_organization --team my_team
# Unlink monalisa's project 1 from the repository of current directory if neither --repo nor --team is specified
$ gh project unlink 1
see that last one? if you specify neither --repo nor --team, it just goes with the repository of the current directory. lowkey convenient, highkey iconic. β
π SEE ALSO π
gh-project(1)β the whole project family, go check it out π«Ά
and that's the tea, bestie! π this was from the GitHub CLI v2.102.0, dated Oct 2026 β mwah, catch you in the next manpage ππ
π¦ 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