Forrest logo
back to the rvm tool

rvm:tldr:913f0

rvm: Set the default Ruby version.
$ rvm --default use ${version}
try on your machine

The command "rvm --default use ${version}" is used when working with Ruby Version Manager (RVM).

RVM is a tool that allows you to manage multiple Ruby environments on your system. It allows you to install and switch between different versions of Ruby to suit your needs.

In this specific command, "${version}" represents the desired Ruby version you want to set as the default. For example, if you want to set Ruby version 2.7.1 as the default, you would replace "${version}" with "2.7.1".

So, when you execute the command "rvm --default use 2.7.1", it instructs RVM to set Ruby version 2.7.1 as the default version that will be used whenever you run Ruby commands or scripts. This means that if you have multiple Ruby versions installed, 2.7.1 will be the active version by default.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the rvm tool