1BUNDLE-INJECT(1) BUNDLE-INJECT(1)
2
3
4
6 bundle-inject - Add named gem(s) with version requirements to Gemfile
7
9 bundle inject [GEM] [VERSION]
10
12 Adds the named gem(s) with their version requirements to the resolved
13 [Gemfile(5)][Gemfile(5)].
14
15 This command will add the gem to both your [Gemfile(5)][Gemfile(5)] and
16 Gemfile.lock if it isn´t listed yet.
17
18 Example:
19
20
21
22 bundle install
23 bundle inject ´rack´ ´> 0´
24
25
26
27 This will inject the ´rack´ gem with a version greater than 0 in your
28 [Gemfile(5)][Gemfile(5)] and Gemfile.lock.
29
30 The bundle inject command was deprecated in Bundler 2.1 and will be re‐
31 moved in Bundler 3.0.
32
33
34
35 October 2022 BUNDLE-INJECT(1)