DevForge CLI is an AI-native scaffolding tool for JavaScript and TypeScript teams that want more than a blank starter. It turns project intent into a runnable repository with architecture guidance, starter surfaces, testing setup, AI rules, repository hygiene, and contributor docs already in place.
Most new projects lose time before real product work even starts. Teams repeat the same setup decisions around frameworks, package managers, testing, linting, formatting, release hygiene, CI, and AI tooling. DevForge compresses that setup phase into one guided flow and outputs a repository that already explains itself.
DevForge helps you:
- move from idea to runnable repo faster
- avoid invalid stack combinations before they land in code
- start with project docs, starter surfaces, and contributor files on day one
- standardize scaffolding across personal projects, internal tooling, and client work
- keep Cursor, Claude, and Codex aligned with the selected stack through generated rules
- landing pages, frontend apps, backend APIs, fullstack apps, microfrontend workspaces, Chrome extensions, and CLI tools
- project-detail starter UIs for frontend surfaces
- metadata and health endpoints for backend and fullstack APIs
- AI rule outputs for Cursor, Claude, Codex, and
AGENTS.md - testing setup for Vitest, Jest, Playwright, and Cypress
- optional ESLint, Prettier, Husky, Commitlint, Docker, and GitHub Actions setup
- generated docs, changelog-ready project metadata, and baseline repository hygiene
Run without a global install:
npx --yes @ali-dev11/devforge@latestGlobal install:
npm install -g @ali-dev11/devforge
devforgeDevForge keeps core setup decisions required, and pushes the rest behind optional customization steps.
- Always asked: project name, output directory, Node strategy, package manager, project intent, architecture when there is more than one valid choice, and stack-specific core choices like framework or backend language.
- Asked only when you opt in to customization: frontend libraries, backend capabilities, testing details, AI rule details, linting/formatting/hooks, and extra DevOps tooling.
Every prompt in DevForge exists to answer one of four questions: where the project should live, what kind of product is being created, which stack should power it, and how much team/process setup should be generated from day one.
Project name: becomes the generated package or workspace name and is reused in starter screens, docs, and metadata.Output directory: tells DevForge where to write files. It is needed so the generator knows which folder to create or validate before writing.Node.js version: controls whether the scaffold follows the current LTS track, the latest available release, or a custom pinned version for stricter team environments.Package manager: chooses the lockfile, install command, and workspace behavior for the generated project.What are you building?: decides the entire downstream flow, including whether DevForge asks frontend, backend, extension, CLI, or workspace-specific questions.Architecture style: determines whether the output is a single app, a modular codebase, a monorepo, or a microfrontend workspace when that makes sense for the selected intent.Template tier: controls how much baseline setup and production-minded structure the scaffold should include.
The full prompt-by-prompt guide is here:
- ESLint: enabled by default because most teams want lint feedback immediately.
- Prettier: enabled by default so formatting stays consistent across humans and AI tools.
- Husky: optional and off by default because local git hooks are team-policy dependent.
- Commitlint: optional and off by default unless you explicitly want commit-message enforcement.
- Docker and generated GitHub Actions: optional, depending on whether the project needs containerization or repo-level automation from day one.
- For frontend teams, it creates a visible starter surface that shows the selected stack, project metadata, and generator details.
- For backend teams, it exposes structured metadata and health endpoints so the scaffold is immediately inspectable.
- For fullstack teams, it gives you both a frontend shell and an API surface instead of only config files.
- For platform teams, it creates repeatable project conventions around docs, testing, and AI rules.
- For public packages and client work, it reduces “first week” setup drift and gives contributors a clearer starting point.
npm install
npm run lint
npm run typecheck
npm run test
npm run build
npm run check
npm run docs:changelog
npm run smoke
npm run runtime:matrix -- --scenario backend-hono --scenario cli-toolnpm installinstalls local development dependencies for the DevForge repository itself.npm run lintchecks repository code quality rules.npm run typecheckvalidates the TypeScript source without emitting build output.npm run testruns regression coverage for prompts, normalization, generator output, changelog rendering, and runtime-matrix coverage.npm run buildcompiles the CLI intodist/so the published package and smoke runs use built artifacts.npm run checkis the main contributor safety command because it combines linting, typechecking, tests, and build verification.npm run docs:changelogrefreshes the GitHub Pages changelog page fromCHANGELOG.md.npm run smokeverifies a non-interactive scaffold run end to end.npm run runtime:matrix -- --scenario ...installs, builds, and verifies generated projects so the scaffold output is tested as a product, not just as source code.
- Documentation Site
- Docs Home
- Prompt Reference
- Overview
- Architecture
- Development
- Generated Output
- Changelog
- GitHub Releases
- GitHub Pages Changelog
- Contributing Guide
- Code of Conduct
- Security Policy
- Bug Report Template
- Feature Request Template
- Documentation Request Template
- Pull Request Template
src/cli.tshandles argument parsing and command dispatch.src/commands/init.tsorchestrates the interactive initialization flow.src/engines/contains environment detection, prompting, normalization, generation, installation, and AI rule logic.src/templates.tsdefines generated project files, starter surfaces, and generated docs.src/runtime-matrix.tsverifies generated project installs, builds, and runtime behavior.src/devforge-rules.tsmaps stack choices to DevForge-curated AI rule packs.docs/powers the public documentation site.test/covers generator behavior, decision normalization, changelog rendering, and runtime-matrix coverage.