Skip to content
nooh
Esc
↑↓navigate↵open⌘Jpreview
On this page

CLI Reference

Detailed reference for the @nooh-ts/cli command-line utility.

Usage

nooh <command> [options]

Global Flags

Flag Shorthand Description
--config <path> -c <path> Path to custom Nooh config file.
--version -v Display the installed Nooh CLI version.
--help -h Display usage and help information.

Commands

build

Compiles the project, validates dependencies and route trees, and outputs generated router code to .nooh/.

nooh build [-c <path>]
  • Exit code 0: Build succeeded without diagnostic errors.
  • Exit code 1: Build failed due to diagnostic errors or config issues.

watch

Monitors filesystem changes in the routes directory and incrementally recompiles router modules.

nooh watch [-c <path>]

dev

Starts the watch compiler and concurrently runs your backend runtime server via a child process.

nooh dev [-c <path>] -- <command> [args...]

Examples

# Run with tsx watch
nooh dev -- pnpm exec tsx --watch src/index.ts

# Run with custom config and Bun
nooh dev -c custom.config.ts -- bun --watch src/index.ts

# Run with Wrangler
nooh dev -- wrangler dev

Was this page helpful?