Drupal - Is there a way to clone a content type and its fields?

The best way to do this is the entity_clone contrib module. I downloaded it, installed it, hit the clone button and all of fields and form settings were copied to the new content type. It worked very well.


Here's one solution to rename a content type using Kevin's suggestion.

1) search and replace in the codebase for "event_xyz"

2) go to /config/sync directory (or where your configs are)

3) run command to search and replace in filenames

4) delete content type "event_xyz"

5) run config import ("drush cim -y")

This worked and took less than ten minutes, although I didn't have to delete any content.