Ruby 3 · Command line and gems Run a script Run a Ruby file from the command line. ruby script.rb Official Ruby 3 documentation More command line and gems commands Check the Ruby versionRun a one-line commandOpen the interactive shellInstall a gemStart a GemfileInstall the bundle All command line and gems commands · Ruby 3 cheatsheet ← Check the Ruby versionRun a one-line command →