GH-GIST-CREATE(1) GitHub CLI manual GH-GIST-CREATE(1) (NAME) gh-gist-create - (SYNOPSIS) gh gist create [... | ... | -] [flags] (DESCRIPTION) . . - . (secret) --public . (OPTIONS) -d, --desc -f, --filename -p, --public (: "secret") -w, --web (ALIASES) gh gist new (EXIT CODES) 0: 1: 2: 4: : . . (EXAMPLES) # 'hello.py' $ gh gist create --public hello.py # $ gh gist create hello.py -d "my Hello-World program in Python" # $ gh gist create hello.py world.py cool.txt # $ gh gist create *.md *.txt artifact.* # $ gh gist create - # (piped) $ cat cool.txt | gh gist create (SEE ALSO) gh-gist(1) Sep 2026 GH-GIST-CREATE(1)