Skip to main content

CLI Commands Reference

This page provides detailed documentation for each Luna CLI command, including usage, options, and examples.


run

Execute a Lua script or project.

luna run main.lua

Options:

  • -v, --verbose — show detailed output
  • -h, --help — show command help

eval

Evaluate a Lua snippet directly.

luna eval 'print("Hello Luna")'

Options:

  • -h, --help — show command help

repl

Start an interactive Read-Eval-Print Loop (REPL).

luna repl

Options:

  • -h, --help — show command help

build

Compile a Lua script into a self-contained executable.

luna build main.lua

Options:

  • -o, --output <file> — specify output binary name
  • -h, --help — show command help

TODO: