BUNDLE-PRISTINE(1)

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

bundle-pristine πŸ’…βœ¨

okay bestie, gather round, because this is the manual page for bundle-pristine β€” a lil General Commands Manual icon that lives in section 1 and exists for exactly one job: restoring installed gems to their pristine condition. no cap. πŸŽ€


🌸 NAME 🌸

bundle-pristine β€” restores installed gems to their pristine condition 🧼✨


πŸ¦‹ SYNOPSIS πŸ¦‹

bundle pristine

that's it. that's the whole vibe. one command, zero drama. πŸ’…


πŸ’– DESCRIPTION πŸ’–

so like, pristine takes the installed gems in your bundle and restores them to their pristine condition using the local gem cache from RubyGems. and if we're talking about git gems? bestie, a forced checkout gets performed. periodt. πŸ”₯

for further explanation: bundle pristine ignores unpacked files on disk. in other words, this command utilizes the local .gem cache or the gem's git repository as if one were installing from scratch. like, full factory reset energy. ✨

Note: the Bundler gem cannot be restored to its original state with pristine. also, you cannot use bundle pristine on gems with a 'path' option in the Gemfile, because bundler has no original copy it can restore from. it's giving nothing to work with, unfortunately. 😭

🌈 When is it practical to use bundle pristine? 🌈

it comes in handy when a developer is debugging a gem. bundle pristine is a great way to get rid of experimental changes to a gem that one may not want. bye bye, lil experiments 🫢


πŸŽ€ Why use bundle pristine over gem pristine --all? πŸŽ€

both commands are very similar, ngl. for context:

  • bundle pristine, without arguments, cleans all gems from the lockfile. πŸ”’
  • gem pristine --all cleans all installed gems for that Ruby version. πŸ’Ž

if a developer forgets which gems in their project they might have been debugging, the Rubygems gem pristine [GEMNAME] command may be inconvenient. πŸ™ˆ one can avoid waiting for gem pristine --all, and instead run bundle pristine. it's giving efficiency, it's giving main character energy, it's giving ✨slay✨


and that's the whole page, bestie!! this lil masterpiece comes to you from April 2026, courtesy of the BUNDLE-PRISTINE(1) of the General Commands Manual. go forth and restore ur gems, you gorgeous genius πŸ‘‘πŸ’–

πŸ“¦ 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 on : a language model's rewrite of the original, under its terms