asdf is a command-line tool that installs and switches programming language runtimes per directory. Plugins add support for Ruby, Node.js, Elixir, Erlang, Go, Python, and other ecosystems.
Overview
asdf consolidates version management that used to require separate tools per language. One command interface installs runtimes, sets global defaults, and pins versions per project through a shared configuration file in each directory tree.
Plugins extend the core to new languages and utilities. The ecosystem already covers common stacks, and authors can publish additional plugins when they need less common runtimes. Shell integration can automatically change active versions as you move between folders.
Projects declare compatible versions in a single tool-versions file that teams can commit alongside code. The tool also understands legacy marker files such as nvmrc, node-version, and ruby-version files to ease migration from older managers.
Completions are available for Bash, Zsh, Fish, and Elvish. A GitHub Action can read the same tool-versions metadata in continuous integration jobs so build agents match local developer environments.
Key features
- Single CLI for many runtimes
- Plugin-based extensibility
- Per-project tool-versions file
- Directory-based auto switching
- Legacy version file support
- Global default configuration
- Shell completions
- GitHub Actions integration
Use cases
- Polyglot development environments
- Consistent team runtime versions
- Migrating from nvm or rbenv
- CI matching local tool pins
- Managing multiple language stacks