'kvm install' command not adding to user PATH, only process PATH
When running the kvm install command, it is not writing the \bin folder to the user PATH, only to the process path. Subsequently closing the command window will cause the kpm and k commands to no longer be found the next time the command prompt is open, until k install is run again. The k upgrade command properly sets the user and process PATH variables.
Command: kvm install 0.1-alpha-build-0443
Downloading KRE-svr50-x86.0.1-alpha-build-0443 from https://www.myget.org/F/aspn
etvnext/api/v2/
Installing to C:\Users\Clint\.kre\packages\KRE-svr50-x86.0.1-alpha-build-0443
Adding C:\Users\Clint\.kre\packages\KRE-svr50-x86.0.1-alpha-build-0443\bin to pr
ocess PATH
Command: kvm upgrade
Determining latest version
Downloading KRE-svr50-x86.0.1-alpha-build-0443 from https://www.myget.org/F/aspn
etvnext/api/v2/
Installing to C:\Users\Clint\.kre\packages\KRE-svr50-x86.0.1-alpha-build-0443
Adding C:\Users\Clint\.kre\packages\KRE-svr50-x86.0.1-alpha-build-0443\bin to pr
ocess PATH
Adding C:\Users\Clint\.kre\packages\KRE-svr50-x86.0.1-alpha-build-0443\bin to us
er PATH
Setting alias 'default' to 'KRE-svr50-x86.0.1-alpha-build-0443'
That's by design, if you run kvm with no args you'll see the options for persisting it.
Thanks for the clarification David, I see the -p option on kvm use and kvm install as you mentioned. Just curious why kvm upgrade doesn't require that also? It would seem like it should for consistency. For instance if you just wanted to upgrade to the newest version, but didn't want to manually type out the package from the install command, shouldn't upgrade function in the same way as install, but auto-locate the newest version? Ideally it would be smart and look if the version it is upgrading is in the path, then update it, if not then require a parameter? Just thought I'd ask, there may be a reason I'm not seeing.
If you want to install the latest but not persist or set the default alias you can now use
kvm install latest
kvm upgrade is now effectively an alias for kvm install latest -persist -alias default