mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
656 B
Plaintext
30 lines
656 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# rails new
|
|
|
|
> Create a new Rails application.
|
|
> More information: <https://guides.rubyonrails.org/command_line.html#rails-new>.
|
|
|
|
- Create a Rails app named `blog` in the current directory:
|
|
|
|
`rails new blog`
|
|
|
|
- Create a Rails app with API-only configuration:
|
|
|
|
`rails new {{app_name}} --api`
|
|
|
|
- Create a Rails app with `postgresql` as the database:
|
|
|
|
`rails new {{app_name}} {{[-d|--database]}} postgresql`
|
|
|
|
- Create a Rails app without generating JavaScript files:
|
|
|
|
`rails new {{app_name}} {{[-J|--skip-javascript]}}`
|
|
|
|
- Display help:
|
|
|
|
`rails new {{[-h|--help]}}`
|