I recently added BUNDLE_ONLY option to Bundler. This is the long-awaited feature from 8+ years ago that allows you to install only the gem groups you need, available from bundler 2.3.19. https://github.com/rubygems/bundler-features/issues/59 https://github.com/rubygems/bundler/pull/4907 https://github.com/rubygems/rubygems/issues/4048 https://github.com/rubygems/rubygems/pull/5759 For example, in