BUNDLE-BINSTUBS(1)
π BUNDLE-BINSTUBS(1) π
okay bestie, welcome to the manual page for bundle-binstubs β it's a General Commands Manual situation and honestly? iconic. this is the one that installs the binstubs of the listed gems. let's get into it π«Ά
β¨ NAME β¨
bundle-binstubs β install the binstubs of the listed gems
π SYNOPSIS π
bundle binstubs GEM_NAME [--force] [--standalone] [--all-platforms]
π¦ DESCRIPTION π¦
so what even is a binstub, you ask? bestie. okay so binstubs are scripts that wrap around executables. Bundler creates a small Ruby file (a binstub, duh π
) that loads Bundler, runs the command, and puts it into bin/. binstubs are a shortcut β or, like, an alternative β to always using bundle exec. and the way that this slaps is you get a file you can run directly, and one that will always run the correct gem version used by the application. no cap. π₯
for example, if you run bundle binstubs rspec-core, Bundler will create the file bin/rspec. that file will contain enough code to load Bundler, tell it to load the bundled gems, and then run rspec. literally that easy, periodt. β¨
this command generates binstubs for executables in GEM_NAME. binstubs are put into bin, or the directory specified by the bin setting if it has been configured. and calling binstubs with [GEM [GEM]] will create binstubs for all given gems. multi-gem moment, we love to see it. π
πΈ OPTIONS πΈ
--forceβ overwrite existing binstubs if they exist. like, yes, we're replacing them, sorry not sorry π--standaloneβ makes binstubs that can work without depending on Rubygems or Bundler at runtime. free and independent, main character energy fr fr π§--shebang=SHEBANGβ specify a different shebang executable name than the default (default'ruby'). customize your lil header, go off π--allβ create binstubs for all gems in the bundle. every single one. obsessed. π--all-platformsβ install binstubs for all platforms. no gem left behind π«Ά
lowkey reminder bestie: --standalone means the binstub stops depending on Rubygems or Bundler at runtime β that's the whole point of it, so don't expect it to phone home. π
and that's the whole page!! π this was bundle-binstubs, from the General Commands Manual, dated April 2026 (yes, from the future, we stay ahead π). ty for reading, go make some binstubs, slay responsibly. mwah. ππβ¨
π¦ where this page comes from
- centos-stream 9: rubygem-bundler 4.0.16-35.module_el9+1443+8853c6a2 Β· MIT AND (Ruby OR BSD-2-Clause)
- fedora 44: rubygem-bundler 4.0.20-39.fc44
- fedora 44: rubygem-bundler 4.0.20-40.fc44 Β· MIT AND (Ruby OR BSD-2-Clause)
- ubuntu stonking: ruby-bundler 4.0.18-1 Β· MIT OR Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms