Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.69 KB

version-managers.md

File metadata and controls

38 lines (26 loc) · 1.69 KB
title description
Version managers
What we use to manager tool versions.

asdf by default

We use asdf to manage our tool versions. asdf can handle most tools using plugins, here are some:

It uses other version managers under the hood, but it keeps everything clean and consistent.

Differences

It uses just one file to set the versions, like in eigen. We can also use the existing version files like .nvmrc and .ruby-version to set the versions. asdf has a legacy_version_file config option that makes it look at these files instead of .tool-versions, but keeping the old ones would make it easy for people that don't want to use asdf to still get the right versions. (Though asdf is actually the best version manager there is.)

Installation

Installation is documented here. Basically brew install asdf, and adding . $(brew --prefix asdf)/libexec/asdf.sh to your shell's rc file.

Usage

Here's some quick help:

  • To install the right versions: asdf install.
  • To set a new local version (only for the repo you're in): asdf set nodejs 12.16.1.
  • To set a new global version: asdf global nodejs 12.16.1.
  • To see what versions are available: asdf list-all nodejs.
  • To see what versions are installed: asdf list nodejs.
  • To see what versions are set: asdf current.