简述 | 命令 |
查看Bundler帮助 | bundle --help | -h | help |
查看Bundler子命令帮助 | bundle <command> --help | -h 或bundle help <command> |
查看Bundler版本 | bundle --version | -v (简述) 或bundle version (详细) |
查看所有配置 | bundle config list |
查看指定配置 | bundle config get <name> |
添加或更改指定配置(应用级) | bundle config set --local <name> <value> |
添加或更改指定配置(用户级) | bundle config set --global <name> <value> |
删除指定配置(应用级) | bundle config unset --local <name> |
删除指定配置(用户级) | bundle config unset --global <name> |
添加或更改https://rubygems.org 的镜像配置(用户级) | bundle config set --global mirror.SOURCE_URL MIRROR_URL |
删除https://rubygems.org 的镜像配置(用户级) | bundle config unset --global mirror.SOURCE_URL |
在当前目录创建一个Gemfile 文件 | bundle init |
查看已安装的所有依赖包 | bundle list |
安装所有依赖包 | bundle install |
添加指定依赖包到Gemfile 文件中并运行bundle install | bundle add <GEMNAME> |
更新所有依赖包 | bundle update --all |
更新指定依赖包 | bundle update <GEMNAME> |
删除指定依赖包 | bundle remove <GEMNAME> |
执行命令 | bundle exec <command> |
原创文章,作者:huoxiaoqiang,如若转载,请注明出处:https://www.huoxiaoqiang.com/ruby/rubyenv/35405.html