Chef generate a template command

chef generate template {{ path_to_cookbook}} {{ template_file }}
Example:
chef generate template workstation motd