GH-PROJECT-MARK-TEMPLATE(1)

πŸ’… gh-project-mark-template β€” mark a project as a template ✨

okay so first things first, bestie: this is the GH-PROJECT-MARK-TEMPLATE(1) page from the GitHub CLI manual, and it's lowkey the most niche little glow-up command ever. it does exactly one thing and it does it iconically: it flips a project into template mode (or flips it right back out). that's the whole vibe. no cap. πŸŽ€


✨ NAME ✨

gh-project-mark-template β€” mark a project as a template 🫢

like, that's it. that's the job. she's a one-trick pony and the trick is slaying.


🌸 SYNOPSIS 🌸

gh project mark-template [<number>] [flags]

so you got your gh project mark-template, you got an optional [<number>] for which project you're talking about, and then a pile of [flags] to customize. the square brackets mean "optional," which is your cue that this command is very much chill about things. πŸ¦‹


πŸŽ€ OPTIONS πŸŽ€

okay here's the flag menu, and honestly? it's giving customization.

  • --format <string> β€” picks how the output gets formatted. the only value listed here is {json}, so if you want JSON, say JSON. πŸ’–
  • -q, --jq <expression> β€” filters that JSON output using a jq expression. yes, the real jq. she's a whole legend. πŸ”₯
  • --owner <string> β€” the login of the org owner. this is how you tell the command whose project you mean, iykyk.
  • -t, --template <string> β€” formats the JSON output using a Go template. and like, for the details on that, the manpage literally says: see "gh help formatting". go read it, bestie, it's right there. πŸ“–
  • --undo β€” unmarks the project as a template. the undo button. the "jk, never mind." the take-backsies. πŸ’€

🌈 EXIT CODES 🌈

listen, exit codes are the vibe check of the terminal, so let's learn them fr fr:

  • 0 β€” successful execution. she ate. πŸ‘‘
  • 1 β€” error. something went sideways. 😭
  • 2 β€” command canceled. nope, not doing it, we're out. πŸ™ˆ
  • 4 β€” authentication required. you gotta prove who you are first, babe. πŸ”
NOTE: specific commands may have additional exit codes. refer to the command's help for more information. so like, don't assume these four are the whole story for every command β€” check the help. ⭐

πŸ¦‹ EXAMPLE πŸ¦‹

here are the literal examples, copied with love, because honestly the examples are the main character here:

# Mark the github org's project "1" as a template
$ gh project mark-template 1 --owner "github"

# Unmark the github org's project "1" as a template
$ gh project mark-template 1 --owner "github" --undo

see how clean that is? mark it, then unmark it. balance. harmony. inner peace. 🧚


πŸ’œ SEE ALSO πŸ’œ

  • gh-project(1) β€” the parent page, the big sister, the one who knows everything. go say hi. 🫢

and that's the whole page, bestie! you're officially a project-template-marking expert πŸ’…βœ¨

cute lil sign-off: this is GH-PROJECT-MARK-TEMPLATE(1) from GitHub CLI v2.102.0, dated Oct 2026 🌸 β€” go forth and template responsibly. πŸŽ€

πŸ“¦ where this page comes from