Installing ASDF
What's ASDF​
asdf is a tool version manager. All tool version definitions are contained within one file (.tool-versions) which you can check in to your project's Git repository to share with your team, ensuring everyone is using the exact same versions of tools.
The old way of working required multiple CLI version managers, each with their distinct API, configurations files and implementation (e.g. $PATH manipulation, shims, environment variables, etc...). asdf provides a single interface and configuration file to simplify development workflows, and can be extended to all tools and runtimes via a simple plugin interface.
Installing ASDF​
to install ASDF you must install dependencies
asdf's main dependencies are git and curl. to install these dependencies run this command
apt install curl git
after this command is done run this command
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.13.1
--branch v0.13.1 is the latest version of asdf, to know the latest release go to asdf github homepage
after cloning repository, run these commands to install asdf
echo '. "$HOME/.asdf/asdf.sh"' >> ~/.bashrc
echo '. "$HOME/.asdf/completions/asdf.bash"' >> ~/.bashrc
echo 'legacy_version_file = yes' >> ~/.asdfrc
exec $SHELL
DONE !
Check Version​
to find out which version of asdf is installed run
asdf info
Update ASDF​
to update asdf run this command
asdf update