GH-PROJECT-COPY(1)
π GH-PROJECT-COPY(1) β the GitHub CLI manual, but make it a group chat π
okay so bestie, welcome to gh-project-copy, straight out of the GitHub CLI manual. this is the one where you take a whole project and justβ¦ copy it. yeah. that's the vibe. β¨
πΈ NAME πΈ
gh-project-copy β Copy a project π«Ά
π¦ SYNOPSIS π¦
gh project copy [<number>] [flags]
literally that's it. a number (optional, she's flexible) and your flags. slay.
π OPTIONS π
okay here's the menu, no cap, every single one:
--draftsβ Include draft issues when copying π like yes, bring the drafts too, they deserve to come along.--format <string>β Output format:{json}β that's the only one listed, so that's what you get.-q,--jq <expression>β Filter JSON output using a jq expression π₯ you know her, you love her.--source-owner <string>β Login of the source owner. Use"@me"for the current user. π (yes, you can literally just say@me, main character energy)--target-owner <string>β Login of the target owner. Use"@me"for the current user. π same deal, different side of the copy.-t,--template <string>β Format JSON output using a Go template; see"gh help formatting"π§ templates, for when you want it to look cute AND structured.--title <string>β Title for the new project β¨ give your copy a name, she deserves one.
β EXIT CODES β
like, how did it go? read the numbers:
0: Successful execution π everything ate, no crumbs.1: Error π something went sideways.2: Command canceled π you hit the brakes.4: Authentication required π log in first, bestie.
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. π (iykyk β always check the command's own help, fr fr)
π EXAMPLE π
here's the moment you've been waiting for, the demo:
# Copy project "1" owned by monalisa to github
$ gh project copy 1 --source-owner monalisa --target-owner github --title "a new project"
look at that. project 1 from monalisa gets copied over to github, with the title "a new project". iconic. obsessed. π
π SEE ALSO π
gh-project(1)β go check out the parent page, she has the whole family tree πΈ
and that's the whole page, bestie!! π¦ this masterpiece is from the GitHub CLI v2.102.0, dated Oct 2026 β yes, we're time-traveling, don't question it. 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