Skip to content

CLI Reference

Brook Li edited this page Oct 16, 2026 · 1 revision

CLI Reference

All scripts are plain Node ESM with no dependencies.

html-prototype-build

Command Options
scripts/install-pack.mjs --list-remote --registry=<url-or-path>
scripts/install-pack.mjs --pack=<id> --dest=user|project|<pack-root> (default user), --ref=<tag>, --registry=, --dry-run, --force, --from-local=<dir>
scripts/resolve-pack.mjs --list --pack-root=<dir>
scripts/resolve-pack.mjs --pack=<id> --select=<ids> --entry (alias), --optional=<ids>, --pack-dir=<dir>, --pack-root=<dir>
runtime/server/index.mjs <html> --port=4178, --snapshot=<path> — Author Server
runtime/cli/screenshot.mjs <html> --out, --browser, --width=1440, --height=900, --snapshot — Screenshots

Exit codes used by the pack scripts: 0 ok, 1 usage/error, 2 pack not found (with remediation), 3 install blocked (local pack), 4 invalid manifest / unsupported schemaVersion. Output is JSON.

ui-pack-maintain

Command Options
scripts/list-packs.mjs --pack-root=
scripts/validate-pack.mjs --pack=<id|dir> --strict, --pack-root=
scripts/resolve-pack.mjs --pack=<id|dir> --entry=<ids> --optional=
scripts/generate-registry.mjs --check, --pack-root=, --output=, --default-ref= (default master), --repository= (default Lisuiwen/ai-html-annotation)
scripts/stamp-chart-plugin.mjs — (Chart Plugin)

Repository

Command
npm test node scripts/validate-skill.mjs — Testing

Clone this wiki locally