Techie June 2020
# list all available versions
rbenv install -l
# install a specific Ruby version
rbenv install 2.7.1
# Install rbenv
brew install rbenv
# Set a local application-specific Ruby version
rbenv local 2.0.0
# Set a global Ruby version (default version)
rbenv global 2.7.1
# Completely uninstall rbenv
brew uninstall rbenv
# Set a shell-specific Ruby version by setting the RBENV_VERSION environment variable in your shell.
rbenv shell 2.2.1
# List all Ruby versions known to rbenv
rbenv versions
# Display the current active Ruby version (current opened project)
rbenv version
# Run this command after you install a new version of Ruby or install a gem that provides commands if you're using rbenv
rbenv rehash
# Display the full path to the executable that rbenv will invoke
rbenv which irb
That’s it!
See you in the next tuts