microsoft-webui-cli-0.0.16 is not a library.
microsoft-webui-cli
Command-line tool for the WebUI framework — build, serve, and inspect WebUI applications.
Install
This installs the webui binary.
Commands
webui build
Build a WebUI application into a compiled protocol and CSS files.
| Option | Default | Description |
|---|---|---|
APP |
. |
Template/component directory |
--out |
(required) | Output directory for protocol.bin + CSS, or a .bin file path to customize the protocol filename (e.g. ./dist/app1.bin) |
--entry |
index.html |
Entry HTML file |
--css |
link |
CSS mode: link (external files) or style (inline) |
--plugin |
(none) | Plugin identifier (see Plugins for available identifiers) |
--css-file-name-template |
[name].[ext] |
Link-mode CSS filename template. Tokens: [name], [hash], [ext] |
--css-public-base |
(none) | Optional base URL/path prepended to Link-mode stylesheet hrefs |
webui serve
Start a development server with live rebuild and HMR.
| Option | Default | Description |
|---|---|---|
APP |
. |
Template/component directory |
--state |
(none) | JSON state file for rendering |
--servedir |
(none) | Static assets directory served at /* |
--port |
3000 |
Server port |
--api-port |
(none) | Proxy API requests to this port |
--plugin |
(none) | Plugin identifier (see Plugins for available identifiers) |
--watch |
off | Enable file watching + HMR |
--css-file-name-template |
[name].[ext] |
Link-mode CSS filename template. Tokens: [name], [hash], [ext] |
--css-public-base |
(none) | Optional base URL/path prepended to Link-mode stylesheet hrefs |
Features:
- Renders HTML at
/and all route paths - Serves static files from
--servedir - JSON partials for client-side navigation (
Accept: application/json) - HMR polling at
/hmrwhen--watchis enabled - API proxy when
--api-portis set
webui inspect
Convert a compiled protocol to JSON for debugging.
App Layout
my-app/
├── src/
│ ├── index.html # entry template
│ ├── my-card.html # component template
│ └── my-card.css # component styles
├── data/
│ └── state.json # render state
└── dist/ # build output
├── protocol.bin
└── my-card.css
License
MIT