CLI
The complete command-line interface for Rogen.
The Rogen command-line interface builds and watches projects.
Run rogen build (or simply rogen) to execute a single build of the project:
rogen buildUse flags to change Rogen behavior or override configurations.
Commands
build
Builds the project. This is the default command if none is provided.
watch
Watches the source directories and builds the project automatically upon file changes.
init
Generates a default .rogen.json configuration file in the current directory.
Options
-c, --config <path>
Specifies a custom configuration file path.
-m, --mode <mode>
Overrides the target mode (e.g., luau, ts, darklua, or custom modes). Rogen detects the mode from the configuration file if omitted.
-s, --source <path>
Overrides the source directories defined in the configuration. Pass the flag multiple times to merge multiple directories.
-t, --tag <tag>
Activates specific tags. Pass the flag multiple times to activate multiple tags.
-p, --project <path>
Overrides the project object by specifying a path to a project file.
-b, --build <path>
Overrides the output directory for transpiled code.
-o, --output <path>
Overrides the file path of the generated Rojo project file.
-h, --help
Prints the help menu with all available options.
-v, --version
Prints the installed version of Rogen.