@gavsidhu/templ8
v1.0.11
Published
Templ8 is a command-line tool that makes it easier to manage custom templates. It allows you to create, store, and use files or directories as templates, saving you time and effort.
Downloads
4
Readme
Templ8 - CLI Template Manager
Templ8 is a command-line tool that makes it easier to manage custom templates. It allows you to create, store, and use files or directories as templates, saving you time and effort.
Table of Contents
Installation
To use Templ8, you'll need to install it on your system. Make sure you have Node.js installed.
npm install -g templ8
Usage
You can run Templ8 using the following syntax:
templ8 command [options]
Commands
add
Add a template to the collection from a local file.
templ8 add (--dir <directory_path> | --file <file_path>) --name <template_name>
Example:
templ8 add --file example.md --name example-template
Options:
file
path to an existing filedir
path to an existing directoryname
Specify a name for the template
paste
Paste the specified template into the current directory.
templ8 paste (--dir=true | --file=true) --name <template_name>
Example:
templ8 paste --file=true --name example.md
Options:
file
whether a template is a file. (default: false)dir
whether a template is a directory. (default: false)name
the name of the template you want to paste
list
List all stored templates.
templ8 list
delete
Remove a stored template.
templ8 delete (--dir=true | --file=true) --name <template_name>
Example:
templ8 delete --file=true --name example.md
Options:
file
whether the template to delete is a file. (default: false)dir
whether the template to delete is a directory. (default: false)template_name
the name of the template to delete.
help
Show general help information.
templ8 --help
Show information about a command
template command --help
Example
Add a template:
templ8 add --dir exampleDir --name example-directory
Paste a template:
templ8 paste my-template
List all templates:
templ8 list
Delete a template:
templ8 delete --dir=true --name example-directory