Closed OneMohrTime closed 3 years ago
@OneMohrTime the version
command is used to get the version of Docker, Nitro API (gRPC), and the CLI version.
From the error message above, it appears you did not run nitro init
which is why it cannot talk to the API that does not exist.
To get the CLI version from Nitro, you can run nitro -v
.
Perhaps we should update the version
command to suggest running start
or init
to make it more user friendly.
Totally got it after that. I wasn't paying full attention during the switchover, I should have read more closely 🤦
@OneMohrTime the next release will check if the init
command has been run and prompt the user to run init
before continuing.
Great solution!
This was released with 2.0.4!
I still get this error Error: unable to get version from the gRPC API
with nitro 2.0.8.
Running the init
command fixed it, but nitro did not tell me to do that.
Description
I followed the installation instructions, and completely removed multipass from my Mac. I installed through
homebrew
, and when I checked the version number, I got:Naturally, I just tried to re-update, but I'm up-to-date
I'm not sure what config file its referencing, as there isn't one mentioned in the instructions.
nitro help
also outputs all of the options, as expected – so some commands work.Is this just a bug?
Steps to reproduce
Additional info
EDIT
Solved by
nitro init
. Just needs to be run once, or else of course there's no version.