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 ajqexpression. yes, the realjq. 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
- 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