Skip to content

Instantly share code, notes, and snippets.

@zambrose
Last active March 30, 2022 11:07
Show Gist options
  • Select an option

  • Save zambrose/8342046 to your computer and use it in GitHub Desktop.

Select an option

Save zambrose/8342046 to your computer and use it in GitHub Desktop.
RVM Cheatsheet

RVM Cheatsheet

Updating RVM
  • rvm get stable
Install Ruby Dependencies
  • rvm requirements
List known rubies
  • rvm list known
Installing Ruby
  • rvm install x.x.x # do this inside the directory where you want to use this version of Ruby
Environment info
  • rvm list # show installed versions of ruby
  • rvm gemset list # show list of available gemsets associated with the current Ruby version
Set Default Ruby

rvm --default use x.x.x example: rvm --default use 2.1.1

Switching between gemsets
  • example: rvm gemset use global or rvm gemset use deafult
Creating a new gemset
  • rvm use ruby-2.0.0@my-app --create
  • gem install rails # install rails into the newly-created gemset
Creating a sticky gemset
  • rvm use ruby-2.0.0@my-app --ruby-version ...do this inside the rails project folder (you can confirm by looking for the dotfiles that RVM creates in the directory)
Additional Resources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment