Isam NestJS Starter CLI

A powerful tool to generate production-ready NestJS applications with authentication, database integration, and more.

Installation

Prerequisites

Before installing Isam NestJS Starter CLI, ensure you have:

  • Node.js (version 16 or higher)
  • npm or yarn package manager
  • Git (for version control)

Global Installation

Install using npm Recommended:

npm install -g isam-nestjs-starter-cli

Or using yarn:

yarn global add isam-nestjs-starter-cli

Verify Installation

Check if the CLI is installed correctly:

isam-nestjs-starter --version

You should see the version number displayed.

Local Installation (Development)

If you want to contribute or modify the CLI:

# Clone the repository
git clone https://github.com/isamch/nestjs-starter-cli.git

# Navigate to directory
cd isam-nestjs-starter-cli

# Install dependencies
npm install

# Build the project
npm run build

# Link globally for testing
npm link

Updating

To update to the latest version:

npm update -g isam-nestjs-starter-cli

Uninstalling

To remove the CLI:

npm uninstall -g isam-nestjs-starter-cli

Troubleshooting

Permission Issues (macOS/Linux)

If you encounter permission errors, use:

sudo npm install -g isam-nestjs-starter-cli

Or configure npm to use a different directory:

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH

Windows Issues

On Windows, you might need to run Command Prompt or PowerShell as Administrator.

Command Not Found

If isam-nestjs-starter command is not found after installation:

  1. Check if npm global bin directory is in your PATH
  2. Restart your terminal
  3. Try reinstalling the package