Skip to content

entity:save

11.0+

Load and save entities.

Examples

  • drush entity:save node --bundle=article. Re-save all article entities.
  • drush entity:save shortcut. Re-save all shortcut entities.
  • drush entity:save node 22,24. Re-save nodes 22 and 24.
  • drush entity:save node --exclude=9,14,81. Re-save all nodes except node 9, 14 and 81.
  • drush entity:save user. Re-save all users.
  • drush entity:save node --chunks=5. Re-save all node entities in steps of 5.

Arguments

  • entity_type. An entity machine name.
  • [ids]. A comma delimited list of Ids.

Options

  • --bundle=BUNDLE. Restrict to the specified bundle. Ignored when ids is specified.
  • --exclude=EXCLUDE. Exclude certain entities. Ignored when ids is specified.
  • --chunks[=CHUNKS]. Define how many entities will be loaded in the same step. [default: 50]

Aliases

  • esav
  • entity-save

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.