table of contents
RBENV(1) | Rbenv Manual | RBENV(1) |
NAME¶
rbenv - manage your application's Ruby environment
SYNOPSIS¶
rbenv <command> [<args>...]
DESCRIPTION¶
rbenv respects the .ruby-version file in a project directory by making sure that any ruby, gem, bundle, or other Ruby command invocation automatically invokes the Ruby version configured for that project.
It does so by generating shims for all Ruby executables. As long as rbenv shims directory is prepended to PATH, rbenv automatically ensures transparent switching between Ruby versions.
rbenv looks for available Ruby versions in the $RBENV_ROOT/versions directory.
COMMANDS¶
rbenv global [<version>]
rbenv local [<version>]
rbenv shell [<version>]
rbenv version
rbenv versions
rbenv install [<version>]
rbenv rehash
rbenv which [<command>]
rbenv init
rbenv help [<command>]
ENVIRONMENT VARIABLES¶
RBENV_VERSION (default: read from .ruby-version file)
RBENV_ROOT (default: ~/.rbenv)
RBENV_DEBUG
RBENV_HOOK_PATH
RBENV_DIR (default: $PWD)
PLUGINS¶
As its core functionality, rbenv only switches between Ruby versions and does nothing else, but offers a plugin mechanism to hook into and override almost any aspect of its default behavior.
The most common plugin for rbenv is ruby-build which facilitates installing new Ruby versions into the $RBENV_ROOT/versions directory.
Read more at <https://github.com/rbenv/rbenv/wiki/Plugins>
NOTES¶
AUTHOR¶
Mislav Marohnić
2023-11-08 | rbenv 1.3.0 |