y
– Interactively manage your Yarn versions
Installation
Since you probably already have node
, the easiest way to install y
is through npm
:
npm install -g @lapsd/y
Switching versions
Switching from a version to another:
y
Adding specifying versions
There are a variety of ways of specifying the target yarn version for y
commands. Most commands use the latest matching version.
Numeric version numbers need to be complete:
1.22.4
There are labels for versions:
-
latest
: newest official release
Removing versions
Remove some cached versions:
y rm 0.27.5
Removing all cached versions except the current version:
y prune
For more help
Check all available commands:
y --help