https://github.com/suchlab/get-template-aliases
Aliases for the get-templates npx tool
https://github.com/suchlab/get-template-aliases
aliases cli get-template
Last synced: 9 months ago
JSON representation
Aliases for the get-templates npx tool
- Host: GitHub
- URL: https://github.com/suchlab/get-template-aliases
- Owner: suchlab
- Created: 2022-11-30T14:59:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-12T20:17:08.000Z (over 3 years ago)
- Last Synced: 2025-03-16T03:41:25.370Z (over 1 year ago)
- Topics: aliases, cli, get-template
- Language: JavaScript
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Aliases for get-template
Aliases to be used in the [get-templates](https://npmjs.com/get-template) npx tool.
Anyone can [suggest a new alias](https://github.com/suchlab/get-template-aliases/issues/new?assignees=itaibo&labels=alias-suggestion&template=suggest-a-new-alias.md&title=New+alias%3A+your-alias-name) 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:
```sh
npx get-template package new-package
```
This command will download the [suchlab/package-template](https://github.com/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:
```sh
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](https://github.com/suchlab/get-template-aliases/issues/new?assignees=itaibo&labels=alias-suggestion&template=suggest-a-new-alias.md&title=New+alias%3A+your-alias-name))
Once installed, you can perform these commands and follow the indications:
### Add new alias
```sh
gtal {add | new | create}
```