Create new application
The command to create the application is rails new application name
rails new myapp
Options can be specified when creating a new application.
Rails version specification
When creating an application by specifying the version rails version new application name
rails _5.2.3_ new myapp
To create an application by specifying a database rails new application name -d database type
rails new myapp -d mysql
If no database is specified, the database will default to sqlite.
do not create test
If you want to create an application without creating a test rails new application name -T
do not create .gitignore file
If you want to create the application without creating a .gitignore file rails new application name -G
There are various options other than the above. The following command will display help and you can see all optional commands and their contents. rails new -h