@luaward/cli
v0.2.2
Published
Official Luaward CLI & GitHub Action runner - deploy Luau scripts (`luaward push`), hot-reload local files into live sessions (`luaward dev --watch`), run snippets (`luaward exec`), and manage license keys from your terminal or CI.
Maintainers
Readme
@luaward/cli - Luaward CLI (v0.2.2)
Manage script sources, builds, kill switches, license keys, and error reports, and run or debug .lua/.luau files inside live sessions from your terminal or CI.
Installation (Early Access)
- Install from public npm (requires Node.js 20+; the dashboard and
/api/ideare currently in Early Access for accounts allowlisted inEARLY_ACCESS_EMAILS; see luaward.com/docs and github.com/luaward):
npm install -g @luaward/cli
luaward --versionOr install from the official tarball, or build directly from the repository:
npm install -g https://luaward.com/luaward-cli.tgz
luaward --versionOr build from a repository checkout:
pnpm --filter @luaward/cli build
node packages/cli/dist/cli.js --helpTo rebuild and update the hosted tarball at apps/web/public/luaward-cli.tgz:
pnpm --filter @luaward/cli pack:publicCredentials and scopes
The CLI authenticates with a personal token (lwm_...) against https://luaward.com/api/ide (do not pass a Developer API key lwa_live_...). Credentials are stored in ~/.config/luaward/credentials.json (override with LUAWARD_CONFIG_DIR) or supplied via LUAWARD_TOKEN=lwm_....
read: view workspace, scripts, sessions, builds, and error lists.manage: read script source, deploy builds, toggle kill switch/preset, issue/list/reset license keys, and triage error reports (requires an auto-approved token mode).control: execute local files (dev), run snippets (exec), stop running scripts (stop), and generate game-pairing commands (pair).
Commands
| Command | Description |
| --- | --- |
| login, logout, status | Sign in with 1-Click Allow in your browser (or --token), remove local credentials, and check workspace status |
| init [--project <id-or-name>] [--merge\|--force] [--pull] | Create luaward.json (guards against accidental overwrites; use --merge to add newly discovered scripts only) |
| scripts [--project <id-or-name>] | List scripts with Enable/Pause status, version, protection preset, and build state |
| pull [alias-or-script-id] [--out <file>] [--stdout] | Pull the latest source into files configured in luaward.json or a specific 32-hex script ID |
| push [alias-or-file] [--preset fast\|balanced\|max] [--script <id>] [--new --project <id> --name <name>] [--no-wait] [--timeout <sec>] | Upload source and wait until the build is ready (exits with code 1 on compile failure or timeout) |
| toggle <target> [--enable\|--disable] [--preset <preset>] | Enable/pause kill switch or change protection preset from your terminal |
| sessions, pair | List active connected sessions and generate a loadstring(...)() pairing snippet for your runtime |
| dev [alias-or-file] [--script <id>] [--watch\|--no-watch] [--session <sid>] [--observe <1-30>] [--stop-on-exit] | Run a local file inside a live game session and hot-reload on every save without overwriting production builds |
| exec <luau-code\|@file.luau> [--session <sid>] [--no-wait] | Execute an inline Luau snippet or file inside a live game session and stream console output |
| stop [--session <sid>] | Stop an active test script running in the connected game session |
| keys list [--project <id>] [--limit <1-50>] | List recent license keys in a project |
| keys create [--project <id>] [--days <N>] [--note <text>] [--discord <id>] | Issue a new license key (supports binding a 15-22 digit Discord ID) |
| keys reset-hwid <key-or-discord-id> [--project <id>] | Reset HWID binding for a license key |
| errors [target] [--status open\|resolved\|ignored\|all] | Inspect error reports (or resolve/ignore/reopen via --resolve, --ignore, --reopen <error-id>) |
All commands support --json / -j for CI and automation scripts, and automatically walk parent directories for luaward.json when executed from a subdirectory.
