You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `strapi generate` interactive CLI may offer various configuration options depending on the chosen Strapi element to generate:
430
430
431
431
#### Destination choices
432
432
433
+
When creating a content-type, controller, policy, middleware, or service, you can choose its destination:
434
+
433
435
| Option | Description |
434
436
|--------|-------------|
435
437
|**New API**| Creates a new API folder |
436
438
|**Existing API**| Adds to existing API folder |
437
439
|**Existing plugin**| Adds to existing plugin folder |
438
440
|**Root**| Adds to project root (policies and middlewares only) |
439
441
440
-
#### Content type options
442
+
#### Content-type specific options
443
+
444
+
When creating a content-type, you can choose to create a collection type or a single type (see [Content-Type Builder](/cms/features/content-type-builder) documentation for differences):
|**Single Type**| Single entry | Homepage, settings |
446
450
447
-
#### Content type naming
451
+
You will also have to define various types of names. The following table explains their differences. Only the display name needs to be manually defined, and you can press Enter to accept the default suggested name for the singular and plural names. Singular and plural names matter for API endpoints (see [REST API](/cms/api/rest#endpoints) documentation for details):
0 commit comments