rails
A server-side MVC framework written in Ruby. Some subcommands such as `generate` have their own usage documentation.
More info →Subcommands (7)
Interact with a Rails application.
Various database-related subcommands for Ruby on Rails.
Destroy Rails resources.
Generate new Rails templates in an existing project.
Create a new Rails application.
List routes in a Rails application.
Serve the Rails app in the current directory using the Puma web server, which comes bundled with Rails.
Options (2)
-p, --portbooleanStart local server for current project on a specified port
rails server {{[-p|--port]}} "{{port}}"-v, --versionbooleanDisplay version
rails {{[-v|--version]}}Examples (8)
Create a new rails project
rails new "project_name"Generate a scaffold for a model named Post, predefining the attributes title and body
rails generate scaffold Post title:string body:textRun migrations
rails db:migrateList all routes
Start local server for current project on port 3000
Start local server for current project on a specified port
rails server [-p|--port] "port"Open console to interact with application from command-line
Display version
rails [-v|--version]