@dotuix/cli
dotuix — CLI for creating, packing, validating, and signing .uix files.
npm install -g @dotuix/cli
Commands
dotuix init [name]
dotuix init [name] -t restaurant|catalog|portfolio
dotuix pack <dir>
dotuix pack <dir> -o dist/
dotuix unpack <file.uix>
dotuix validate <file.uix>
dotuix info <file.uix>
dotuix export <file.uix> --type order
dotuix export <file.uix> --type order --format csv -o orders.csv
dotuix keygen
dotuix keygen -o ministry-key
dotuix sign <file.uix> --key private.key
dotuix verify <file.uix>
dotuix encrypt <file.uix> --pin "1234" -o locked.uix
Quick start
dotuix init my-menu -t restaurant
cd my-menu
dotuix pack .
dotuix validate my-menu.uix
dotuix validate — offline-first checks
In addition to structural validation (manifest fields, entry file, database schema), validate performs static analysis looking for external dependencies that would silently fail on an offline kiosk:
- External URLs in
src, href, url() (http://, https://, //)
- Google Fonts imports
- CDN script tags (jsDelivr, unpkg, cdnjs)
fetch() / XMLHttpRequest calls to non-relative URLs
$ dotuix validate myshop.uix
✓ manifest.json valid
✓ entry index.html found
✓ data.db schema correct
⚠ External URL in index.html:34 — https://fonts.googleapis.com/...
Network is blocked. This asset will fail to load at runtime.
✗ 1 offline violation found
dotuix export — get data out
Reads state.db from inside the .uix file, filters records by --type, and writes flat JSON or CSV. This is the primary way for non-technical users to get their app's state data into Excel or accounting software.
dotuix export orders.uix --type order --format csv -o orders.csv
dotuix export orders.uix --type order --format json -o orders.json
Related
MIT License