Introducing Package Installer CLI: Modern Web App Scaffolding Made Easy

August 2, 2025 (2w ago)

🚀 Package Installer CLI: Modern Web App Scaffolding Made Easy

Introduction

Modern web development is fast-paced, but setting up a new project can still be tedious and error-prone. Developers often spend hours configuring frameworks, languages, UI libraries, databases, and ORMs before writing a single line of business logic. Package Installer CLI solves this by providing a beautiful, interactive, and highly flexible CLI that scaffolds production-ready projects in minutes.

Motivation

Why another CLI? Most existing tools are either framework-specific or lack flexibility for full-stack, multi-language, or database-driven setups. Package Installer CLI is designed for:

✨ Key Features

🆕 What's New: Database-Specific ORM Selection

The latest release introduces database-specific ORM selection. When you choose a database (e.g., PostgreSQL, MySQL, MongoDB), the CLI only shows ORMs compatible with that database, as defined in template.json. This prevents mismatches and streamlines setup.

Installation

Install globally via npm:

npm install -g package-installer-cli

CLI Walkthrough

1. Start the CLI

pi my-app
# or
package-installer my-app

2. Interactive Prompts

You'll be guided through a series of questions:

3. Project Creation & Dependency Installation

The CLI copies the selected template, installs dependencies (pnpm or npm), and provides next steps.

4. Success Message & Next Steps

You'll see a styled summary with commands to start development, build, and more.

Advanced Features

Template Configuration: template.json

The CLI is powered by a flexible template.json file. Here’s a simplified example:

{
  "frameworks": {
    "nextjs": {
      "languages": ["typescript", "javascript"],
      "ui": ["shadcn", "material-ui"],
      "databases": {
        "postgresql": { "orms": ["prisma", "typeorm"] },
        "mongodb": { "orms": ["mongoose"] },
        "none": { "orms": [] }
      },
      "options": ["src", "tailwind"],
      "bundlers": ["vite", "webpack"]
    }
    // ... other frameworks ...
  }
}

You can easily add new frameworks, languages, databases, or ORMs by editing this file.

Real-World Use Cases

Troubleshooting & Tips

Roadmap & Future Plans

Example Workflow

$ pi my-app
🚀 Choose a framework: Next.js
đź’» Choose a language: TypeScript
đź§© Do you want to add a UI library? Yes
✨ Choose a UI library: Shadcn
📦 Choose a bundler: Vite  ( only for reactjs and reactjs combination templates )
đź“‚ Do you want a src directory? Yes
🎨 Do you want to use Tailwind CSS? Yes
🗄️ Choose a database: PostgreSQL
đź”§ Choose an ORM: Prisma

Conclusion

Package Installer CLI is the fastest way to start modern web projects with best practices, flexibility, and beautiful developer experience. Whether you’re building a startup MVP, a full-stack enterprise app, or just learning, this CLI will save you time and help you focus on what matters—building great software.


Ready to build your next modern web app? Try Package Installer CLI today!