GH-PROJECT-LINK(1)
π GH-PROJECT-LINK β like, the manual page bestie
okay so this is the gh-project-link page from the GitHub CLI manual β it's the lil command that links a project to a repository or a team π and honestly? it's giving connector energy, it's giving "let me introduce these two" β¨
π¦ NAME π¦
gh-project-link β link a project to a repository or a team π«Ά
πΈ SYNOPSIS πΈ
gh project link [<number>] [flags]
so yeah, you pass an optional project number, plus whatever flags your heart desires, and boom β linked π₯
β¨ OPTIONS β¨
--owner <string>β the login of the owner, bestie π. Wanna rep yourself? use"@me"for the current user, slay π-R,--repo <string>β the repository that's gonna get linked to this project π this is the repo-side of the situationship-T,--team <string>β the team you wanna link to this project π¦ team-side, no cap
π EXIT CODES π
lowkey important, so pay attention π here's what the numbers mean when the command dips out:
0β successful execution β¨ it ate, no notes1β error π something went sideways2β command canceled π you (or something) hit the brakes4β authentication required π like, log in first bestie
NOTE: specific commands may have additional exit codes. refer to the command's help for more information π β yes, i'm being fr fr, go check the help if you need the full tea.
π EXAMPLE π
okay here's where it gets iconic, live demos:
# Link monalisa's project 1 to her repository "my_repo"
$ gh project link 1 --owner monalisa --repo my_repo
# Link monalisa's organization's project 1 to her team "my_team"
$ gh project link 1 --owner my_organization --team my_team
# Link monalisa's project 1 to the repository of current directory if neither --repo nor --team is specified
$ gh project link 1
see that last one? if you don't specify --repo or --team, it goes for the repository of the current directory π§ sneaky but cute.
π SEE ALSO π
gh-project(1)β the whole project family, go meet the relatives π
and that's the page!! π this masterpiece is from GitHub CLI v2.102.0, dated Oct 2026 β mwah, go link some stuff bestie π π
π¦ 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