wp scaffold post-type <slug>

Generates PHP code for registering a custom post type


slugThe internal name of the post type


--label <label>The text used to translate the update messages
--textdomain <textdomain>The textdomain to use for the labels
--dashicon <dashicon>The dashicon to use in the menu
--themeCreate a file in the active theme directory, instead of sending to STDOUT. Specify a theme with --theme=&lt;theme&gt; to have the file placed in that theme
--plugin <plugin>Create a file in the given plugin’s directory, instead of sending to STDOUT
--rawJust generate the register_post_type() call and nothing else
--forceOverwrite files that already exist