This command will create a template and its manifest from the ARCHETYPE_TEMPLATE_DIR
.
To create a new manifest, run the following:
archetype new
You will be prompted for a name for the manifest:
Please enter a name for the new template test
Successful creation will be reported like this:
✔ Template `test` created at /$HOME/Code/templates/test
The following empty template structure should be created in your ARCHETYPE_TEMPLATE_DIR
- 📁 $ARCHETYPE_TEMPLATE_DIR
| - 📁 test
| - | - 📁 template/
| - | - 📄 manifest.json
| - | - 📄 README.md
The template
directory is the new home for your template, the manifest.json
is a blank manifest for specifying variables and the README.md
is an optional extra as a place for documentation on your new template.