@xriptjs/cli
v0.4.1
Published
Unified CLI for the xript ecosystem — validate, generate types, generate docs, scaffold projects, sanitize fragments, and scan annotations.
Maintainers
Readme
@xriptjs/cli
Unified CLI for the xript ecosystem. One command to validate, generate, scaffold, sanitize, and scan.
Install
npm install -g @xriptjs/cliOr via npx:
npx xript <command> [options]Commands
xript validate <manifest.json>
Validate manifests against the xript spec. Supports app manifests, mod manifests, and cross-validation between them.
xript validate manifest.json
xript validate app.json --mod mod.jsonxript typegen <manifest.json>
Generate TypeScript definitions from a manifest.
xript typegen manifest.json # stdout
xript typegen manifest.json -o types.d.ts # filexript docgen <manifest.json>
Generate markdown documentation from a manifest.
xript docgen manifest.json -o docs/
xript docgen manifest.json -o docs/ --link-format "[{name}]({url})"xript init [name]
Scaffold a new xript app or mod project.
xript init my-app # interactive
xript init my-app --yes # defaults, no prompts
xript init my-mod --mod # mod projectxript sanitize <file.html>
Sanitize HTML fragments for safe use in UI slots.
xript sanitize fragment.html
xript sanitize fragment.html --validatexript scan <directory>
Scan TypeScript source for @xript annotations and generate manifest bindings.
xript scan src/ --manifest manifest.json # preview
xript scan src/ --manifest manifest.json --write # update in placeDocumentation
xript.dev: full docs, spec, runtime guides, and interactive demos.
License
MIT
