Forrest logo
back to the gem tool

gem:tldr:6a91e

gem: Search for remote gem(s) and show all available versions.
$ gem search ${regular_expression} --all
try on your machine

This command is used to search for gems (Ruby libraries or packages) that match a given regular expression. Here is a breakdown of the command:

  • gem search: This is the command for searching for gems. It allows you to find gems available in the RubyGems repository.
  • ${regular_expression}: This is a placeholder representing the regular expression you provide. Regular expressions are powerful pattern-matching expressions used to search for specific text patterns. In this case, you would replace ${regular_expression} with your actual regular expression.
  • --all: The --all flag is optional and is used to display all versions of matching gems. By default, only the latest version of each gem is displayed.

When you run this command with your regular expression, it will search for gems that match the specified pattern and display the results, including the gem name, version, and description.

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 gem tool