Skip to content

content:export

Exports a single content entity in YAML format.

See https://drupal.org/project/issues/drupal for bug reports and feature requests for this command.

Arguments

  • entity_type_id. The type of entity to export (e.g., node, taxonomy_term).
  • entity_id. The ID of the entity to export. Will usually be a number.

Options

  • -W, --with-dependencies. Recursively export all of the entities referenced by this entity into a directory structure.
  • -d, --dir=DIR. The path where content should be exported.

Global Options

  • -v|vv|vvv, --verbose. Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • -y, --yes. Auto-accept the default for all user prompts. Equivalent to --no-interaction.
  • -l, --uri=URI. A base URL for building links and selecting a multi-site. Defaults to https://default.
  • To see all global options, run drush topic and pick the first choice.

Legend

  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.