BUNDLE-CONSOLE(1)

πŸ“¦ version 4.0.6, in centos-stream 10

πŸ’… BUNDLE-CONSOLE(1)

okay bestie, welcome to the bundle-console page from the General Commands Manual β€” yes that's the one, the Bundler-family manual ✨


πŸŽ€ NAME

bundle-console β€” open an IRB session with the bundle pre-loaded, no cap 🫢


✨ SYNOPSIS

bundle console [GROUP]

πŸ’– DESCRIPTION

So what this does is: it starts up an interactive Ruby console session, but like… in the context of your current bundle. Your gems are already there. It's giving main character energy for your Gemfile, fr fr 🌸

If you don't pass a GROUP at all, then every gem chilling in the default group in Gemfile(5) gets preliminarily loaded. That's it. That's the whole deal ✨

(Gemfile(5) lives over at https://bundler.io/man/gemfile.5.html if you wanna go read it, iykyk.)

Now, if you do pass a GROUP, then it loads all the gems in that group plus the gems in the default group. Both. Together. Slay πŸ’…

and here's the chaotic bit β€” even if the group you named doesn't actually exist in your Gemfile, the IRB console just… starts. No warning. No error. Nothing. It does not care. πŸ’€

You can change which shell it uses with the environment variable BUNDLE_CONSOLE, or with bundle config set console. The options are:

So like, bundle console uses irb by default, but you can absolutely swap in Pry or Ripl with bundle console by adjusting the console Bundler setting. πŸ¦‹

⚠️ also make sure that pry or ripl is actually in your Gemfile, bestie. Otherwise things get awkward 😭

πŸ”₯ EXAMPLE

$ bundle config set console pry
$ bundle console
Resolving dependencies...
[1] pry(main)>

look at that prompt. pry(main). iconic. πŸŽ€


🧚 SEE ALSO

Gemfile(5) β€” https://bundler.io/man/gemfile.5.html ⭐


and that's the whole page, bestie πŸ’œ this one's from the General Commands Manual, dated April 2026 β€” go forth and console, you absolute legend 🌈🫢

πŸ“¦ where this page comes from
  • centos-stream 10: ruby4.0 4.0.6-37.el10 Β· (Ruby OR BSD-2-Clause) AND (Ruby OR BSD-2-Clause OR GPL-1.0-or-later) AND BSD-3-Clause AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND ISC AND LicenseRef-Fedora-Public-Domain AND MIT AND CC0-1.0 AND zlib AND Unicode-DFS-2015 AND HPND-Markus-Kuhn AND Ruby-pty AND (Ruby OR BSD-2-Clause OR Python-2.0.1) AND BSD-2-Clause AND (Apache-2.0 OR BSL-1.0) AND GPL-2.0-only AND CC-BY-2.5 AND OFL-1.1-RFN AND BSL-1.0
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms