I'm trying to find a command that will show me the current running version of GH CLI.
Right now yes, there is only 1 version (1.0) but in the future, we are going to need to know what version is being run for debug purposes (I'm currently writing internal doc, so I would like to future proof it.)
Usually, command line elements have a -v
element like yarn -v
so you can know what is the current running version. But that doesn't seem to work with GH CLI.
So is there a way to get the current running GH CLI version?
Oddly, this doesn't seem to be documented, but it's just gh version
You can see the commands at https://github.com/cli/cli/tree/trunk/pkg/cmd