tldr/pages/common/rbenv.md

38 lines
762 B
Markdown
Raw Normal View History

2018-06-14 18:08:50 +01:00
# rbenv
> Easily install Ruby versions and manage application environments.
> See also: `asdf`.
> More information: <https://github.com/rbenv/rbenv>.
2018-06-14 18:08:50 +01:00
- Install a Ruby version:
2018-06-14 18:08:50 +01:00
`rbenv install {{version}}`
2018-06-14 18:08:50 +01:00
- Display a list of the latest stable versions for each Ruby:
`rbenv install --list`
- Display a list of installed Ruby versions:
2018-06-14 18:08:50 +01:00
`rbenv versions`
- Use a specific Ruby version across the whole system:
2018-06-14 18:08:50 +01:00
`rbenv global {{version}}`
- Use a specific Ruby version for an application/project directory:
2018-06-14 18:08:50 +01:00
`rbenv local {{version}}`
- Display the currently selected Ruby version:
2018-06-14 18:08:50 +01:00
`rbenv version`
- Uninstall a Ruby version:
2018-06-14 18:08:50 +01:00
`rbenv uninstall {{version}}`
- Display all Ruby versions that contain the specified executable:
2018-06-14 18:08:50 +01:00
`rbenv whence {{executable}}`