How to list all available entity types? How to list all available entity types in Drupal using drush?

Related:


How to get list of all node types?
Drupal 7

drush eval "print_r(array_keys(entity_get_info()));"


Drupal 8

drush eval "print_r(array_keys(\Drupal::entityTypeManager()-&gt;getDefinitions()));"


as per Jason suggestion,

or:

drush eval "print_r(array_keys(\Drupal::entityManager()-&gt;getDefinitions()));"


as per @RaisinBranCrunch suggestion. Note \Drupal::entityManager() is being deprecated in 8.x.