Skip to content

Commit 035ff71

Browse files
authored
Merge pull request rails#53924 from skipkayhil/push-tsnoyqkkqzrt
Extract --skip docs into section
2 parents 7f50099 + f40aea3 commit 035ff71

File tree

1 file changed

+26
-31
lines changed

1 file changed

+26
-31
lines changed

guides/source/command_line.md

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -44,37 +44,6 @@ $ rails new my_app
4444

4545
Rails will set up what seems like a huge amount of stuff for such a tiny command! We've got the entire Rails directory structure now with all the code we need to run our simple application right out of the box.
4646

47-
If you wish to skip some files from being generated or skip some libraries, you can append any of the following arguments to your `rails new` command:
48-
49-
| Argument | Description |
50-
|-------------------------|----------------------------------------------------------|
51-
| `--skip-git` | Skip git init, .gitignore, and .gitattributes |
52-
| `--skip-docker` | Skip Dockerfile, .dockerignore and bin/docker-entrypoint |
53-
| `--skip-keeps` | Skip source control .keep files |
54-
| `--skip-action-mailer` | Skip Action Mailer files |
55-
| `--skip-action-mailbox` | Skip Action Mailbox gem |
56-
| `--skip-action-text` | Skip Action Text gem |
57-
| `--skip-active-record` | Skip Active Record files |
58-
| `--skip-active-job` | Skip Active Job |
59-
| `--skip-active-storage` | Skip Active Storage files |
60-
| `--skip-action-cable` | Skip Action Cable files |
61-
| `--skip-asset-pipeline` | Skip Asset Pipeline |
62-
| `--skip-javascript` | Skip JavaScript files |
63-
| `--skip-hotwire` | Skip Hotwire integration |
64-
| `--skip-jbuilder` | Skip jbuilder gem |
65-
| `--skip-test` | Skip test files |
66-
| `--skip-system-test` | Skip system test files |
67-
| `--skip-bootsnap` | Skip bootsnap gem |
68-
| `--skip-dev-gems` | Skip adding development gems |
69-
| `--skip-thruster` | Skip Thruster setup |
70-
| `--skip-rubocop` | Skip RuboCop setup |
71-
| `--skip-brakeman` | Skip brakeman setup |
72-
| `--skip-ci` | Skip GitHub CI files |
73-
| `--skip-kamal` | Skip Kamal setup |
74-
| `--skip-solid` | Skip Solid Cache, Queue, and Cable setup |
75-
76-
These are just some of the options that `rails new` accepts. For a full list of options, type `rails new --help`.
77-
7847
### Preconfigure a Different Database
7948

8049
When creating a new Rails application, you have the option to specify what kind
@@ -124,6 +93,32 @@ development:
12493

12594
It generated a database configuration corresponding to our choice of PostgreSQL.
12695

96+
### Skipping Defaults
97+
98+
If you wish to skip some files from being generated or skip some libraries
99+
entirely, you can pass one of the `--skip` arguments to the `rails new` command:
100+
101+
```bash
102+
$ rails new sas --skip-active-storage
103+
Based on the specified options, the following options will also be activated:
104+
105+
--skip-action-mailbox [due to --skip-active-storage]
106+
--skip-action-text [due to --skip-active-storage]
107+
108+
create
109+
create README.md
110+
...
111+
```
112+
113+
In the above example, Action Mailbox and Action Text are skipped in addition to
114+
Active Storage because they depend on Active Storage functionality.
115+
116+
For a full list of options (including what can be skipped), use `--help`:
117+
118+
```bash
119+
$ rails new --help
120+
```
121+
127122
Command Line Basics
128123
-------------------
129124

0 commit comments

Comments
 (0)