Skip to content

Instantly share code, notes, and snippets.

@alexcalaca
Last active March 24, 2022 19:44
Show Gist options
  • Save alexcalaca/e07e24dcc9d151189323a38560ea3896 to your computer and use it in GitHub Desktop.
Save alexcalaca/e07e24dcc9d151189323a38560ea3896 to your computer and use it in GitHub Desktop.

Gem commands cheatsheet.md

gem list - List all gems installed

gem list -i <gem_name> - It shows if a gem exists or not. The output is true or false

gem list <gem_name> - It shows the gem version Example: gem list zlib

gem which <gem_name> - It shows the gem path Example: gem which zlib

gem install <gem_name> - It installs a specific gem Example: gem install nokogiri

gem install <gem_name> -v <version> - It installs a specific gem version Example: gem install rails -v 5.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment