Skip to content

vix uninstall

vix uninstall removes the Vix CLI or a globally installed package.

Use it when you want to remove Vix from your machine, remove a global package, or clean up local Vix data.

Usage

bash
vix uninstall [options]
vix uninstall -g <pkg>

What it does

ModeCommandPurpose
CLI modevix uninstallRemove the Vix CLI binary
Global package modevix uninstall -g <pkg>Remove a globally installed package

Basic usage

bash
vix uninstall                   # remove detected CLI
vix uninstall --purge           # remove CLI + local store/cache data
vix uninstall -g gk/jwt         # remove a global package

Uninstall options

bash
vix uninstall --all             # remove every detected Vix binary
vix uninstall --all --system    # include system locations
vix uninstall --prefix /usr/local   # remove <prefix>/bin/vix
vix uninstall --path /usr/local/bin/vix  # remove explicit binary

Difference between CLI uninstall and package uninstall

CommandRemoves
vix uninstallVix CLI binary
vix uninstall --purgeVix CLI binary + local store/cache data
vix uninstall -g <pkg>One globally installed package

Difference between vix remove and vix uninstall

CommandPurpose
vix remove <pkg>Remove a dependency from the current project
vix uninstall -g <pkg>Remove a globally installed package
vix uninstallRemove the Vix CLI

Options

OptionDescription
-g, --globalRemove a globally installed package.
--purgeRemove local store/cache as well.
--allTry to remove every detected Vix binary in common locations.
--systemInclude system locations such as /usr/local/bin and /usr/bin.
--prefix <dir>Remove <dir>/bin/vix.
--path <file>Remove the binary at an explicit path.
-h, --helpShow command help.

Common workflows

bash
vix uninstall
vix uninstall --purge
vix uninstall --all
vix uninstall --all --system
vix uninstall --prefix /usr/local
vix uninstall --path /usr/local/bin/vix
vix uninstall -g gk/jwt
vix uninstall -g @gk/jwt

Before uninstalling

bash
vix info       # inspect current setup
vix doctor     # check environment health
vix clean      # remove project-local files only
vix remove gk/jwt  # remove a project dependency only

Common mistakes

Using uninstall for project dependencies

bash
vix remove gk/jwt          # project dependency
vix uninstall -g gk/jwt    # global package

Using --purge when you only want to remove the binary

bash
vix uninstall          # only removes the CLI binary
vix uninstall --purge  # also removes local store/cache data

Removing the wrong binary

bash
which vix
vix --version
vix uninstall --path /usr/local/bin/vix
CommandPurpose
vix upgradeUpgrade the Vix CLI or a global package
vix install -gInstall a global package
vix list -gList global packages
vix removeRemove a project dependency
vix cleanClean project-local generated state
vix resetClean and reinstall project dependencies
vix infoInspect Vix paths and caches
vix doctorDiagnose environment health

Next step

Continue with shell completion.

Open the vix completion guide

Released under the MIT License.