Forrest logo
tool overview
On this page you find all important commands for the CLI tool bundle. If the command you are looking for is missing please ask our AI.

bundle

The "bundle" command line tool is part of the Ruby programming language ecosystem and is used with RubyGems. Bundler, which is powered by the "bundle" tool, is a package manager for managing Ruby libraries and dependencies within a project.

With the "bundle" command, you can manage the installation and execution of gems (Ruby libraries) for a specific project, ensuring that the correct versions and dependencies are used. It helps ensure that different projects can have their own independent gem environments, avoiding conflicts between libraries required by different applications.

Some common uses of the "bundle" command include:

  1. Installing gems: By running "bundle install" in the project directory, Bundler reads the project's Gemfile (a file specifying gems and their versions) and installs the required gems, downloading them from the RubyGems repository.

  2. Running a script or application: Instead of directly executing a Ruby script or application, you can use "bundle exec" followed by the script command to ensure it runs within the context of the bundled gems. This helps guarantee that the correct gem versions and dependencies are used.

  3. Updating gems: Running "bundle update" will analyze the Gemfile and retrieve the latest available versions of the gems specified, updating them in the project's gem environment.

  4. Managing gem environments: Bundler allows you to create an isolated environment for gems specific to a project using "bundle config" commands. This enables easy switching between different gem configurations, such as using different versions for different projects.

Overall, the "bundle" command line tool simplifies the management and deployment of Ruby libraries, ensuring consistency and avoiding conflicts between different projects' gem dependencies.

List of commands for bundle:

  • bundle:tldr:3a73a bundle: Update all gems within the given group in the `Gemfile`.
    $ bundle update --group ${development}
    try on your machine
    explain this command
  • bundle:tldr:438c1 bundle: Update one or more specific gem(s) defined in the `Gemfile`.
    $ bundle update ${gem_name} ${gem_name}
    try on your machine
    explain this command
  • bundle:tldr:5be60 bundle: Update all gems by the rules defined in the `Gemfile` and regenerate `Gemfile.lock`.
    $ bundle update
    try on your machine
    explain this command
  • bundle:tldr:5c09f bundle: List installed gems in the `Gemfile` with newer versions available.
    $ bundle outdated
    try on your machine
    explain this command
  • bundle:tldr:962e2 bundle: Update one or more specific gems(s) defined in the `Gemfile` but only to the next patch version.
    $ bundle update --patch ${gem_name} ${gem_name}
    try on your machine
    explain this command
  • bundle:tldr:99823 bundle: Execute a command in the context of the current bundle.
    $ bundle exec ${command} ${arguments}
    try on your machine
    explain this command
  • bundle:tldr:a1412 bundle: Install all gems defined in the `Gemfile` expected in the working directory.
    $ bundle install
    try on your machine
    explain this command
  • bundle:tldr:d889b bundle: Create a new gem skeleton.
    $ bundle gem ${gem_name}
    try on your machine
    explain this command
  • middleman:tldr:908e2 middleman: Build the project in the current directory to prepare for deployment.
    $ bundle exec middleman build
    try on your machine
    explain this command
tool overview