如果您能提供帮助或希望成为维护者之一,请开始提供帮助。 您可以在 RVM Github 组织 中找到更多与 RVM 相关的项目。
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
使用说明
- 上面的默认值用“*”前缀表示。