diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2019-05-18 11:54:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-18 11:54:06 +0300 |
commit | 0a3abb150e597e068cfa787d85eb8ac2c95059e4 (patch) | |
tree | 3fdd647ac386f96feceb70c5759e530ac3718574 /guides/source | |
parent | da2337330689ec63309f85fb0a67d66bdcd585bc (diff) | |
parent | 0e77abaaf660b36dfc23bea9758239804d9ac4ec (diff) | |
download | rails-0a3abb150e597e068cfa787d85eb8ac2c95059e4.tar.gz rails-0a3abb150e597e068cfa787d85eb8ac2c95059e4.tar.bz2 rails-0a3abb150e597e068cfa787d85eb8ac2c95059e4.zip |
Merge pull request #36282 from yoones/add-skip-options-to-command-line-guide
List available skip options in command line guide
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/command_line.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md index 55f8c84b66..4681574edd 100644 --- a/guides/source/command_line.md +++ b/guides/source/command_line.md @@ -92,6 +92,28 @@ $ rails new commandsapp Rails will set you up with what seems like a huge amount of stuff for such a tiny command! You've got the entire Rails directory structure now with all the code you need to run our simple application right out of the box. +If you wish to skip some files or components from being generated, you can append the following arguments to your `rails new` command: + +| Argument | Description | +| ----------------------- | ----------------------------------------------------------- | +| `--skip-gemfile` | Don't create a Gemfile | +| `--skip-git` | Skip .gitignore file | +| `--skip-keeps` | Skip source control .keep files | +| `--skip-action-mailer` | Skip Action Mailer files | +| `--skip-action-text` | Skip Action Text gem | +| `--skip-active-record` | Skip Active Record files | +| `--skip-active-storage` | Skip Active Storage files | +| `--skip-puma` | Skip Puma related files | +| `--skip-action-cable` | Skip Action Cable files | +| `--skip-sprockets` | Skip Sprockets files | +| `--skip-spring` | Don't install Spring application preloader | +| `--skip-listen` | Don't generate configuration that depends on the listen gem | +| `--skip-javascript` | Skip JavaScript files | +| `--skip-turbolinks` | Skip turbolinks gem | +| `--skip-test` | Skip test files | +| `--skip-system-test` | Skip system test files | +| `--skip-bootsnap` | Skip bootsnap gem | + ### `rails server` The `rails server` command launches a web server named Puma which comes bundled with Rails. You'll use this any time you want to access your application through a web browser. |