rails new   Command Generator

Build a new rails app with the options you need. Works with Rails 8.0

rails new my_rails_app

Options

Database

Preconfigure for selected database (Default: sqlite3)

Frontend

Choose JavaScript approach (Default: importmap)
Choose CSS processor

Application Type

Preconfigure smaller stack for API only apps Preconfigure a minimal rails app
Path to application template (filesystem path or URL)

Skip Options (1/2)

Skip git init, .gitignore and .gitattributes Skip Dockerfile, .dockerignore and bin/docker-entrypoint Skip test files Skip system test files Skip JavaScript files

Skip Options (2/2)

Skip Hotwire integration Skip jbuilder gem Skip asset pipeline Skip Active Record files Skip Action Cable files

Advanced Options

Don't run bundle install Set up with Gemfile pointing to your Rails checkout Set up with Gemfile pointing to 8-0-stable branch Set up with Gemfile pointing to Rails repository main branch