Earlier this week we released CLI 2.6.0 (and then 2.6.1 shortly after).
Two new commands have been added: upgrade and uninstall.
Before this release, you would have to use an upgrade command specific to your package manager (for example, npm upgrade enonic/cli, brew upgrade enonic etc).
From now on you can simply run enonic upgrade and, if there’s a new version, CLI will execute correct upgrade command depending on what package manager was used to install it.
enonic uninstall will do the same to uninstall the CLI, but we obviously don’t recommend using this command. Ever.
Under the hood CLI will do the same as what your package manager would do if you tried to uninstall directly, so it should be exactly the same behaviour.