Skip to Content
API ReferenceCLI Commands

CLI Commands

NeatNode provides an interactive CLI to scaffold Node.js projects and a focused resource generator for feature slices.


Main Command

npx neatnode

This launches the interactive project generator. No flags required - you’ll be guided through prompts.


Resource Generation

neatnode g resource <name>

Generates a complete backend resource and updates the route registry automatically.

Options

FlagDescription
--forceOverwrite an existing resource when regenerating it.

Future Commands

Planned resource-oriented commands for later releases:

  • g controller
  • g service
  • g route
  • g validation

Interactive Prompts

When you run the CLI, you’ll be asked:

PromptDescription
Project nameFolder name for your new project
LanguageJavaScript or TypeScript
TemplateBasic, REST API, or Socket.IO
Include CRUD?Whether to include example CRUD files

After Scaffolding

Once the CLI finishes, follow these steps:

cd <project-name> npm install npm run dev

Global Installation

If you prefer running without npx:

npm install -g neatnode neatnode

Version Check

neatnode --version

Prints the currently installed CLI version.


Help

neatnode --help

Displays available commands and options.