{
    "mode": "man",
    "parameter": "bundle-binstubs",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/bundle-binstubs/1/json",
    "generated": "2026-06-17T13:18:43Z",
    "synopsis": "bundle binstubs GEMNAME [--force] [--path PATH] [--standalone]",
    "sections": {
        "NAME": {
            "content": "bundle-binstubs - Install the binstubs of the listed gems\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "bundle binstubs GEMNAME [--force] [--path PATH] [--standalone]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Binstubs  are scripts that wrap around executables. Bundler creates a small Ruby file (a bin‐\nstub) that loads Bundler, runs the command, and puts it into bin/. Binstubs are a shortcut-or\nalternative- to always using bundle exec. This gives you a file that can be run directly, and\none that will always run the correct gem version used by the application.\n\nFor example, if you run bundle binstubs rspec-core, Bundler will create the  file  bin/rspec.\nThat  file  will  contain  enough code to load Bundler, tell it to load the bundled gems, and\nthen run rspec.\n\nThis command generates binstubs for executables in GEMNAME. Binstubs are put  into  bin,  or\nthe  --path directory if one has been set. Calling binstubs with [GEM [GEM]] will create bin‐\nstubs for all given gems.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "--force",
                    "content": "Overwrite existing binstubs if they exist.\n\n--path The location to install the specified binstubs to. This defaults to bin.\n",
                    "long": "--force"
                },
                {
                    "name": "--standalone",
                    "content": "Makes binstubs that can work without depending on Rubygems or Bundler at runtime.\n",
                    "long": "--standalone"
                },
                {
                    "name": "--shebang",
                    "content": "Specify a different shebang executable name than the default (default ´ruby´)\n\n--all  Create binstubs for all gems in the bundle.\n\n\n\n\nDecember 2021                         BUNDLE-BINSTUBS(1)",
                    "long": "--shebang"
                }
            ]
        }
    },
    "summary": "bundle-binstubs - Install the binstubs of the listed gems",
    "flags": [
        {
            "flag": "",
            "long": "--force",
            "arg": null,
            "description": "Overwrite existing binstubs if they exist. --path The location to install the specified binstubs to. This defaults to bin."
        },
        {
            "flag": "",
            "long": "--standalone",
            "arg": null,
            "description": "Makes binstubs that can work without depending on Rubygems or Bundler at runtime."
        },
        {
            "flag": "",
            "long": "--shebang",
            "arg": null,
            "description": "Specify a different shebang executable name than the default (default ´ruby´) --all Create binstubs for all gems in the bundle. December 2021 BUNDLE-BINSTUBS(1)"
        }
    ],
    "examples": [],
    "see_also": []
}