Just documenting this here in case it comes up for anyone else because it confused the heck out of me. Trying to run smcli on Windows just now, I kept getting the following error (from wallet create and wallet read):
$ ./smcli.exe wallet create
Enter a BIP-39-compatible mnemonic (or leave blank to generate a new one):
Error: The handle is invalid.
Just documenting this here in case it comes up for anyone else because it confused the heck out of me. Trying to run smcli on Windows just now, I kept getting the following error (from wallet create and wallet read):
Turns out this happened because I'm running it inside of Git Bash on Windows. It works fine in Powershell. See https://github.com/golang/go/issues/11914.