Ruby 3 · Command line and gems Check the Ruby version Print the installed Ruby version. ruby -v Official Ruby 3 documentation More command line and gems commands Run a scriptRun a one-line commandOpen the interactive shellInstall a gemStart a GemfileInstall the bundle All command line and gems commands · Ruby 3 cheatsheet Run a script →