Skip to main content

Scaffold

The normal download uses the release tag matching the packaged CLI. During an unpublished preview, use this checkout’s template:
Run that command from the OCX checkout. --canary follows main, which may still be the V1 line before this migration merges; it does not mean the current PR branch. The destination must have no visible files. Scaffolding copies the template and replaces its registry name and author placeholders, including in README and authoring instructions. It supports the shared init options --cwd, --json, -q, --quiet, and -v, --verbose.

Validate

Validation checks the schema, referenced source files, safe targets, same-registry dependencies, cycles, and duplicate targets. External dependency aliases are resolved at installation time. Validation does not execute native agents, plugins, or tools. A failed validation exits nonzero. Skipping duplicate-target validation does not relax the installer’s ownership checks, and build still performs full validation.

Build

The output path is relative to --cwd, not automatically to the source directory. A build validates and reads all inputs, stages complete output, and then replaces the previous output. It rejects paths that would overwrite the source or overlap its files/ tree. The result is static JSON and component assets, with no runtime server requirement. See the authoring tutorial for local testing and deployment, and the protocol reference for the emitted layout.