LinuxCommandLibrary

bundler

Ruby dependency manager

TLDR

Install dependencies from Gemfile

$ bundle install
copy
Add a gem to Gemfile
$ bundle add [gem]
copy
Update all gems
$ bundle update
copy
Update specific gem
$ bundle update [gem]
copy
Execute command with bundled gems
$ bundle exec [command]
copy
Initialize new Gemfile
$ bundle init
copy
Show installed gems
$ bundle list
copy
Check for security vulnerabilities
$ bundle audit
copy

SYNOPSIS

bundle command [options] [arguments]

DESCRIPTION

bundler manages Ruby application dependencies by tracking and installing exact gem versions needed. It ensures consistent environments across development, staging, and production by using a Gemfile and Gemfile.lock.
Since Ruby 2.6, Bundler is part of Ruby's standard library.

PARAMETERS

--no-color

Disable colored output
--verbose
Enable verbose output
--path directory
Install gems to specified directory
--without groups
Exclude gem groups from installation
--deployment
Install in deployment mode

CONFIGURATION

Gemfile

Specifies Ruby gem dependencies for the project. Located in the project root directory.
.bundle/config
Per-project Bundler configuration including install paths, without groups, and deployment settings. Also reads from ~/.bundle/config for global defaults.

COMMANDS

install

Install gems specified in Gemfile
update
Update gems to latest versions within constraints
exec
Execute command in context of bundle
add
Add gem to Gemfile and install
remove
Remove gem from Gemfile
init
Generate a simple Gemfile
list
Show all installed gems
show
Show gem installation location
check
Verify all dependencies are installed
clean
Remove unused gems
doctor
Display warnings about common problems
gem
Create a simple gem skeleton
platform
Display platform compatibility information

CAVEATS

Always use bundle exec when running gem executables to ensure correct versions. The Gemfile.lock should be committed to version control. Running bundle update without arguments may introduce breaking changes.

SEE ALSO

gem(1), ruby(1), rake(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community