CLI Commands
Hybroid Live provides a command-line interface for project management and compilation.
init (alias: i)
Section titled “init (alias: i)”Initializes a new Hybroid Live project in the current directory.
hybroid init --package my-project --name "My Level" --output out| Flag | Required | Description |
|---|---|---|
--package | Yes | Kebab-case package name |
--name | Yes | Display name of the level |
--output | Yes | Output directory for compiled Lua files |
This creates a hybconfig.toml file and a level.hyb template.
build (alias: b)
Section titled “build (alias: b)”Transpiles all .hyb files in the project to Lua. Reads hybconfig.toml from the current directory.
hybroid buildOutput is written to the configured output directory. A manifest.json is also generated for PewPew Live compatibility.
watch (alias: w)
Section titled “watch (alias: w)”Watches the project directory for changes and automatically rebuilds when a .hyb file is modified.
hybroid watchRuns indefinitely. Only triggers on .hyb file writes (ignores .lua files).
add (alias: a)
Section titled “add (alias: a)”language-server (aliases: server, lsp)
Section titled “language-server (aliases: server, lsp)”Starts the Hybroid Language Server Protocol (LSP) process for editor integration.
hybroid language-serverThis is used by editors (such as VS Code) to provide autocompletion, diagnostics, and other IDE features. It reads from standard input and writes to standard output following the LSP specification. This command is typically invoked automatically by the editor extension rather than directly by users.