gh gist create file.txt --public

Category: GitHub CLI

gh gist create file.txt --public

Create a public GitHub Gist from a file

Creates a GitHub Gist (a shareable snippet) from a local file. Public means anyone can see it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.