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