Rails Blocks CLI
Static-first installer for Rails Blocks components.
Free component metadata and packages are read from the public Rails-Blocks GitHub artifact registry. The Rails Blocks app is only contacted for login, account status, and Pro component access.
Example
# List free components from the public registry
rails-blocks list --free
# Read component documentation in the terminal
rails-blocks docs accordion
# Install one component as shared ERB partials
rails-blocks install accordion --as erb_template
# Preview installing all free components as shared partials
rails-blocks install --all --free --as partial --dry-run
# Review local changes before updating a component package
rails-blocks diff accordion --as partial
# Update a component package after reviewing the diff
rails-blocks update accordion --as partial
# Compare one local Stimulus controller with the latest version
rails-blocks diff stimulus tooltip
# Update all free Stimulus controllers
rails-blocks update stimulus --all --free
# Log in before fetching Pro packages
rails-blocks login
# Install one Pro component as ViewComponent files
rails-blocks install dropdown --as view_component
# Install all Pro components as ViewComponent files
rails-blocks install --all --pro --as view_component
# Update all Pro-access Stimulus controllers
rails-blocks update stimulus --all --pro