config:export:content:type

Export a specific content type and their fields.

Usage:

drupal config:export:content:type [arguments] [options]
  cect

Available options

Option Details
--module The Module name.
--optional-config Export content type as an optional YAML configuration in your module
--remove-uuid If set, the configuration will be exported without uuid key.
--remove-config-hash If set, the configuration will be exported without the default site hash key.
--include-module-dependencies Include content type module dependencies in module info YAML file

Available arguments

Argument Details
content-type Content Type to be exported

Examples

Provide a content type and module name.

drupal config:export:content:type page \
  --module="demo"

Export content type as an optional config for the provided module.

drupal config:export:content:type page \
  --module="demo" \
  --optional-config \
  --remove-uuid \
  --remove-config-hash