GitHub/CLI/How to/Create a Gist on GitHub from the command line
- GitHub/CLI/gh/gist/create docs
# Create a gist from a file gh gist create [<filename>...] [flags] # Common flags: -d, --desc <string> # Add a description -p, --public # Make the gist public (default is secret) -f, --filename # Specify filename when reading from stdin -w, --web # Open in browser after creationCreate a public gist from a file
Create a gist with a description
Create a gist with multiple files
Create a gist from standard input
Create a gist from piped input