Ruby 3 · Command line and gems Run a one-line command Evaluate code from the command line. ruby -e 'puts (1..5).sum' Official Ruby 3 documentation More command line and gems commands Check the Ruby versionRun a scriptOpen the interactive shellInstall a gemStart a GemfileInstall the bundle All command line and gems commands · Ruby 3 cheatsheet ← Run a scriptOpen the interactive shell →