サポート
RVMはボランティアコミュニティによって維持されています。問題はRVM issue トラッカーにご報告ください。
もしお手伝いいただける方、またはメンテナーの一員になりたい方がいらっしゃいましたら、ぜひお手伝いをお願いいたします。RVM Github組織で、RVM関連のプロジェクトをさらにご覧いただけます。
スポンサー
Carbon Ads

RVM CLI の使用方法

RVMには多くのオプションがありますが、コマンドラインAPIをより自然なものにするための多くのデフォルト設定があります。

rvm help

RVM 一般的な使用方法 API

rvm [action] [interpreter] [options]

ここで "action" は以下のいずれかです。

use       - setup current shell to use a specific ruby version
[interpreter]
          - when used as an action it is a silent 'use'
system
reset     - remove default and current settings, exit the shell.
info      - show information for current ruby
list      - show currently installed versions
reload    - reload RVM source itself (useful after changing RVM source)
implode   - removes all ruby installations it manages, everything in ~/.rvm
get       - {stable,head} upgrades RVM to the stable or git head branches.
do        - runs a named ruby file against specified and/or all rubies

install   - install one or many ruby versions
upgrade   - install new ruby, copy gemsets, make gems pristine, remove old ruby
reinstall - remove ruby, install it, make gems pristine
uninstall - uninstall one or many ruby versions, leaves their sources
remove    - uninstall one or many ruby versions and remove their sources

そして [interpreter] は以下のいずれかです。

ruby      - MRI/YARV Ruby (The Standard), defaults to 1.8.6
jruby     - JRuby
rbx       - rubinius
ree       - ruby Enterprise Edition
system    - use the system ruby (eg. pre-RVM state)
default   - use RVM set default ruby and system if it hasn't been set.

より詳細なリストは、以下を実行することで確認できます。

rvm list

そして [options] は以下のいずれかです。

-v|--version  - Emit RVM version loaded for current shell
-h|--help     - Emit this output and exit
--default     - when used with ruby selection, sets a default ruby for new shells.
--debug       - Toggle debug mode on for very verbose output.
--force       - Force install, removes old install & source before install.
--all         - Used with 'rvm list' to display 'most' available versions.
--summary     - Used with 'do' to print out a summary of the commands run.
--with*       - Forwarded to `./configure`
-C            - custom configure options, comma separated, double quote
                args that need quoting, default: --enable-shared=true

使用方法に関する注意