Commands

These command groups map directly to the current clap subcommands in crates/pack-cli/src/main.rs.

Gem-compatible verbs

pack install rails

Install a specific gem through RubyGems, with Windows-safe ruby -S gem fallback.

pack list rails

List installed gems through RubyGems, optionally matching a pattern.

pack search rails

Search remote gems through the native RubyGems.org API client.

pack info rails

Inspect gem metadata and dependencies through the native registry client.

pack env

Show RubyGems environment information.

pack outdated

Check globally installed gems for updates through RubyGems.

Project dependency flows

pack install

Run the project install path when no specific gem is supplied through Bundler, with ruby -S bundle fallback.

pack exec rails console

Run gem binaries from the same front door.

pack add rails

Add a dependency to the Gemfile.

pack remove rails

Remove a dependency from the Gemfile.

pack update

Update all or one dependency in the current project through Bundler.

pack update --global

Update globally installed gems through RubyGems (gem update path).

pack generate

Generate or update Gemfile.lock.

pack why rack

Trace why a gem appears in the dependency tree.

pack lock

Write a binary pack.lock.

pack upgrade

Upgrade Pack through RubyGems when available, or the direct binary installer otherwise.

Tasks and diagnostics

pack doctor

Inspect project state, Ruby environment, cache directories, gems, plugins, and Rails issues.

pack run dev

Run a named task from a Packfile.

pack tasks

List Packfile task names and optionally descriptions.

pack plugins list

Inspect installed Pack plugins.

Rails shortcuts

pack server

Start the Rails server.

pack console

Open Rails console.

pack test

Run Rails tests.

pack rspec

Run RSpec with passthrough args.

pack db migrate

Run database operations.

pack assets precompile

Drive asset pipeline operations.

pack cache clear

Run cache helpers.

pack docker

Generate Docker support for a Rails app.