dler init
Initialize a new Rempts CLI project
Initialize a new Rempts CLI project with predefined templates and configurations.
Usage
dler init [project-name] [options]Description
The init command creates a new Rempts CLI project by bootstrapping it with one of the available templates. This command is essentially a wrapper around the @reliverse/rempts project initializer, providing a streamlined experience for creating CLI tools.
Options
| Option | Short | Type | Description |
|---|---|---|---|
--name <name> | -n | string | Project name |
--template <template> | -t | 'basic' | 'advanced' | 'monorepo' | Project template |
--dir <path> | -d | string | Directory to create project in |
--git | -g | boolean | Initialize git repository (default: true) |
--install | boolean | Install dependencies (default: true) | |
--package-manager <pm> | -p | 'bun' | 'pnpm' | 'yarn' | 'npm' | Package manager to use |
Templates
basic
A minimal CLI project template with essential configurations.
advanced
An advanced CLI project template with additional features and configurations.
monorepo
A monorepo CLI project template for managing multiple packages.
Examples
Create a basic project
dler init my-cli-toolCreate a project with specific template
dler init my-cli-tool --template advancedCreate project in specific directory
dler init my-cli-tool --dir ./projects/my-toolCreate project without git initialization
dler init my-cli-tool --no-gitCreate project without installing dependencies
dler init my-cli-tool --no-installUse specific package manager
dler init my-cli-tool --package-manager pnpmWhat happens
When you run dler init, it:
- Calls
@reliverse/remptswith the specified options - Creates a new project structure based on the chosen template
- Initializes a git repository (unless
--no-gitis specified) - Installs dependencies using the specified package manager (unless
--no-installis specified) - Provides next steps for getting started
Next steps
After successful project creation:
cd <project-name>
@reliverse/rempts devRequirements
- Bun runtime: This command requires Bun to be available
- @reliverse/rempts: The underlying tool that handles project creation
Related
@reliverse/rempts- The CLI project generator