Class: AvenxCLI

AvenxCLI(optionsopt)

Avenx CLI - Command Line Interface router for Avenx-JS.

Constructor

new AvenxCLI(optionsopt)

Creates an instance of AvenxCLI. Initializes the base directory and framework directory paths.

Parameters:
Name Type Attributes Description
options object <optional>
Source:

Classes

AvenxCLI

Methods

(async) run(command, args)

Executes a given CLI command with provided arguments.

Parameters:
Name Type Description
command string

The command to run (e.g., 'init', 'generate', 'build', 'serve', 'help').

args Array:.<string:>

Additional arguments for the command.

Source:

serveProject(port, host, openopt)

Serves the project on specified port and host.

Parameters:
Name Type Attributes Description
port number
host string
open boolean <optional>

Whether to open the browser automatically.

Source: