New Rails Application in Ruby
From the Ruby on Rails cheat sheet · Getting Started · verified Jul 2026
New Rails Application
Create a new Rails application with various options
bash
# Basic app
rails new myapp
# API-only app
rails new myapp --api
# Skip specific components
rails new myapp --skip-test --skip-bundle✅ Default database is SQLite, use --database for PostgreSQL/MySQL
💡 --api flag creates lightweight API-only app
🔍 --skip-test useful if using RSpec instead of Minitest
⚡ Use rails new --help to see all available options
setupclinew-app