create-template-registry
v0.2.2
Published
Maintainer-controlled npm create CLI with an official internal template registry.
Downloads
405
Maintainers
Readme
create-template-registry
A powerful CLI tool to scaffold new projects from a curated catalog of official templates.
The create-template-registry CLI allows you to generate ready-to-use projects interactively or via command-line arguments, ensuring you start with best practices and standard configurations.
Quick Start
The easiest way to get started is by running the interactive CLI. It will guide you through choosing a template and setting up your project.
npx create-template-registry
# or
npm create template-registry@latestUsage
You can run the CLI non-interactively by passing the required options:
npx create-template-registry --template discord --dir my-discord-bot --name my-bot --package-manager npm --yesAvailable Templates
To view all available templates, run:
npx create-template-registry --list-templatesCurrently included templates:
discord: A robust TypeScript Discord.js v14 bot template with advanced configuration options.discord-base: A minimalist Discord.js v14 starter bot fetched fromniridya/base-bot-v14.
CLI Options
| Option | Description |
|--------|-------------|
| --template <id> | The ID of the template to use (e.g., discord, discord-base). |
| --dir <path> | The target directory for the new project. |
| --name <name> | The name of the project (used in package.json). |
| --package-manager <npm|pnpm|yarn> | Your preferred package manager. |
| --install / --skip-install | Whether to automatically install dependencies. |
| --git / --skip-git | Whether to initialize a new git repository. |
| --advanced | Enable advanced template-specific options. |
| --yes | Skip interactive prompts and use defaults. |
| --list-templates | List all available templates and exit. |
