{
    "mode": "man",
    "parameter": "BUNDLE-INJECT",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/man/BUNDLE-INJECT/json",
    "generated": "2026-10-22T12:35:17Z",
    "synopsis": "bundle inject [GEM] [VERSION]",
    "sections": {
        "NAME": {
            "content": "bundle-inject - Add named gem(s) with version requirements to Gemfile\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "bundle inject [GEM] [VERSION]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Adds  the  named  gem(s)  with  their  version requirements to the resolved [Gemfile(5)][Gem‐\nfile(5)].\n\nThis command will add the gem to both your [Gemfile(5)][Gemfile(5)] and  Gemfile.lock  if  it\nisn´t listed yet.\n\nExample:\n\n\n\nbundle install\nbundle inject ´rack´ ´> 0´\n\n\n\nThis  will  inject  the  ´rack´  gem  with a version greater than 0 in your [Gemfile(5)][Gem‐\nfile(5)] and Gemfile.lock.\n\nThe bundle inject command was deprecated in Bundler 2.1 and will be removed in Bundler 3.0.\n\nAugust 2023                            BUNDLE-INJECT(1)",
            "subsections": []
        }
    },
    "summary": "bundle-inject - Add named gem(s) with version requirements to Gemfile",
    "flags": [],
    "examples": [],
    "see_also": []
}