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