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 10: ruby4.0 4.0.6-37.el10 Β· (Ruby OR BSD-2-Clause) AND (Ruby OR BSD-2-Clause OR GPL-1.0-or-later) AND BSD-3-Clause AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND ISC AND LicenseRef-Fedora-Public-Domain AND MIT AND CC0-1.0 AND zlib AND Unicode-DFS-2015 AND HPND-Markus-Kuhn AND Ruby-pty AND (Ruby OR BSD-2-Clause OR Python-2.0.1) AND BSD-2-Clause AND (Apache-2.0 OR BSL-1.0) AND GPL-2.0-only AND CC-BY-2.5 AND OFL-1.1-RFN AND BSL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms