GH-PROJECT-FIELD-CREATE(1)
π GH-PROJECT-FIELD-CREATE(1) π
okay bestie, so this is a page straight out of the GitHub CLI manual (yes, the GitHub CLI manual, capital letters, very official) and it's literally all about making a brand-new field inside a project. like, you're decorating your project board and this is the command that hands you the glue gun. π
β¨ NAME β¨
gh-project-field-create β create a field in a project. that's it. that's the whole gig. π
πΈ SYNOPSIS πΈ
gh project field-create [<number>] [flags]
the <number> is optional (it's in square brackets, bestie, so it's a vibe, not a demand) and then you sprinkle flags on top like little stickers. π¦
π OPTIONS π
--data-type <string>β the DataType of the new field, and no you can't freestyle this one, it has to be one of these exact four:{TEXT|SINGLE_SELECT|DATE|NUMBER}. pick your fighter. π₯--format <string>β output format, and your only option here is{json}. that's the whole menu. π-q,--jq <expression>β filter that JSON output using ajqexpression. for when the JSON is giving too much and you need to be selective. π₯--name <string>β name of the new field. yes you have to actually name it, it won't guess. π--owner <string>β login of the owner. use"@me"for the current user (that's you, main character π).--single-select-options <strings>β the options for theSINGLE_SELECTdata type. this is where the dropdown menu content lives. multiple strings, so bring a list. π-t,--template <string>β format JSON output using a Go template. also, go read"gh help formatting", that's literally the instruction, i'm just passing it along. π«Ά
β EXIT CODES β
listen, when the command finishes it tells you how it went, and here's the legend:
0β Successful execution β¨ slay, it worked.1β Error π something went sideways.2β Command canceled π« you (or the universe) backed out.4β Authentication required π like, who even are you? log in first.
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. so basically this list is the standard lineup, but individual commands can have their own little extra lore. check the command's help, iykyk. π
π§ EXAMPLE π§
first up, creating a field in the current user's project "1":
# Create a field in the current user's project "1"
$ gh project field-create 1 --owner "@me" --name "new field" --data-type "text"
and then the glow-up version β a field with three options to select from, for owner monalisa:
# Create a field with three options to select from for owner monalisa
$ gh project field-create 1 --owner monalisa --name "new field" --data-type "SINGLE_SELECT" --single-select-options "one,two,three"
see how the options are one comma-separated string? "one,two,three". observed. noted. ate. π
π SEE ALSO π
gh-project(1)β the parent page, go say hi, it's the whole project family. π«Ά
aaaand that's the page!! no cap, every flag got its moment. π
sign-off time: this delicious little manual page is from GitHub CLI v2.102.0, dated Oct 2026 β so like, future vibes, iconic behavior, periodt. ππ
π¦ 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