gh gist create --public -d 'My script' script.sh

Category: GitHub CLI

gh gist create --public -d 'My script' script.sh

Create a public Gist with a description

Creates a public Gist with an optional description.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.