The following caches all gems in the vendor directory. Good if you want to create a release archive of your application, which does not require a bundle install.

bundle cache --all-platforms