Skip to content

RahulManu79/forge

Repository files navigation

Forge CLI

Forge CLI

A powerful scaffolding tool for Node.js/TypeScript projects. Quickly generate controllers, services, modules, and entire project boilerplates with a single command.

Features

  • Scaffold controllers, services, modules, and projects
  • Interactive CLI prompts for easy usage
  • Supports custom templates
  • Configurable via forge.config.json
  • Dry-run mode for previewing changes
  • Colored output and spinners for better UX

Installation

npm i -g @node-forge/forge

Usage

Generate a Controller

forge g controller User

Generate a Service

forge g service Auth

Generate a Module

forge g module Blog

Create a New Project

forge new my-app

Interactive Mode

Just run forge with no arguments:

forge

Configuration

Add a forge.config.json in your project root to set defaults:

{
  "outputPath": "src/generated",
  "namingConvention": "PascalCase"
}

Custom Templates

Place your templates in .forge/templates/ to override the defaults.

Roadmap

  • Interactive CLI
  • Config file support
  • Dry-run mode
  • Custom templates
  • Plugin system for new resource types
  • Project type presets (REST, GraphQL, etc.)
  • Auto-generate documentation
  • More advanced testing and CI

Contributing

PRs and issues welcome!

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors