> For the complete documentation index, see [llms.txt](https://ploegert.gitbook.io/til/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ploegert.gitbook.io/til/programmy/ruby/generate-ruby-version-and-gemset-files-with-rvm.md).

# Generate Ruby Version And Gemset Files With RVM

[RVM](https://rvm.io), the ruby version manager, is a fairly flexible tool that supports a number of workflows. The `rvm` utility can be used to generate both a `.ruby-version` file and a `.ruby-gemset` file for a given project.

```bash
$ rvm --ruby-version use 2.5.3@my_project
```

This will generate a `.ruby-version` file in your current project directory that points RVM to the `2.5.3` version of Ruby. It will also create a `.ruby-gemset` file that RVM will use for managing this project's gemset.
