npm
Source
Description
A CLI scaffolding tool for creating new WolfStar HTTP Framework bot projects.Usage
- Project name — an npm-compatible name for your bot
- Package manager — npm, yarn, pnpm, or bun
- Language — TypeScript or JavaScript
- Build tool — tsdown, TypeScript 6, or the TypeScript 7 release candidate
- Linter and formatter — Oxlint / ESLint and Oxfmt / Prettier
- Port — the port the HTTP server will listen on (default:
3000) - Optional features (multiselect) —
- i18n — add
@wolfstar/plugin-i18next - Subcommands — add an example command that uses subcommands
- Testing — set up Vitest with
@wolfstar/http-framework-test-utils
- i18n — add
- Auto-install — install dependencies immediately after scaffolding
Options
Non-interactive / AI agent mode
When the CLI detects an AI agent is running it (via@vercel/detect-agent), it automatically enters non-interactive mode, equivalent to passing --no-interactive. A project name argument is required in this mode:
Generated project structure
src/locales/en-US/commands/ping.jsonandsrc/@types/i18next.d.tsare only generated when i18n is enabled.src/@types/i18next.d.tsis produced by@wolfstar/i18next-type-generator; the CLI runs it automatically at the end of scaffolding, and it can be re-run any time locale files change (seegenerate:i18nbelow).src/commands/math.tsis only generated when Subcommands is enabled.tests/ping.test.ts,vitest.config.ts, andvitest.setup.tsare only generated when Testing is enabled.
i18n type generation
When i18n is enabled, the generatedpackage.json includes a generate:i18n script that (re)generates src/@types/i18next.d.ts from the JSON files under src/locales/:
Requirements
- Node.js
>=20