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:
AGENTS.mdRun without a global install:
npx --yes @ali-dev11/devforge@latest
Global install:
npm install -g @ali-dev11/devforge
devforge
DevForge keeps core setup decisions required, and pushes the rest behind optional customization steps.
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:
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-tool
npm install installs local development dependencies for the DevForge repository itself.npm run lint checks repository code quality rules.npm run typecheck validates the TypeScript source without emitting build output.npm run test runs regression coverage for prompts, normalization, generator output, changelog rendering, and runtime-matrix coverage.npm run build compiles the CLI into dist/ so the published package and smoke runs use built artifacts.npm run check is the main contributor safety command because it combines linting, typechecking, tests, and build verification.npm run docs:changelog refreshes the GitHub Pages changelog page from CHANGELOG.md.npm run smoke verifies 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.src/cli.ts handles argument parsing and command dispatch.src/commands/init.ts orchestrates the interactive initialization flow.src/engines/ contains environment detection, prompting, normalization, generation, installation, and AI rule logic.src/templates.ts defines generated project files, starter surfaces, and generated docs.src/runtime-matrix.ts verifies generated project installs, builds, and runtime behavior.src/devforge-rules.ts maps 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.