Skip to content

Aliases for the get-templates npx tool

Notifications You must be signed in to change notification settings

suchlab/get-template-aliases

Repository files navigation

Aliases for get-template

Aliases to be used in the get-templates npx tool.

Anyone can suggest a new alias and it will be immediatly available for everyone to be used.

Usage in get-templates

Instead of using the username/repo structure, just use the alias. Example:

npx get-template package new-package

This command will download the suchlab/package-template template in the new-package directory without having to specify the whole route.


CLI for collaborators

To use the CLI to update the aliases first go into the directory and install the package globally:

npm i -g

Keep in mind this is for the repo collaborators only. If you don't have write permissions you won't be able to update the aliases with the CLI (you can still suggest a new alias)

Once installed, you can perform these commands and follow the indications:

Add new alias

gtal {add | new | create}