interfaces/cli/luna.mjs

Main Luna CLI command dispatcher for running dev, backend, frontend, Electron, and utility workflows.

CategoryCLI
Sourceinterfaces/cli/luna.mjs

What it does

Main Luna CLI command dispatcher for running dev, backend, frontend, Electron, and utility workflows.

Key responsibilities

  • Defines the supported CLI commands and their associated subprocess behavior.
  • Wraps npm and Python invocation with cross-platform environment normalization.
  • Implements helper commands: help, doctor, dev, dev:lan, backend, frontend, electron, build, dist, check, processes, clean.
  • Uses child_process.spawn to delegate to existing package scripts and to preserve interactive stdio.
  • Provides Python subprocess environment fixes such as PYTHONDONTWRITEBYTECODE and PYTHONUNBUFFERED.

Related files

Explore other files in the CLI category.