What Framework CLI (v0.8.4) is a zero-configuration command-line tool for What Framework projects, providing a development server with WebSocket-based HMR, production builds with content hashing and gzip, a preview server, and static site generation. It is actively maintained and supports commands like `what dev`, `what build`, `what preview`, and `what generate`. Key differentiators include file-based routing from `src/pages/`, bare import transforms, and a hybrid mode for flexible rendering. The CLI is designed to be used as a dev dependency and can be invoked directly via npx.
npm install what-framework-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a new project with What Framework CLI, creates a basic config and page, then starts the dev server.
Update your what.config.js to use `export default { ... }` instead of `module.exports = { ... }`.Use `what dev --host 0.0.0.0` to expose the dev server on all network interfaces.
Use `npx create-what my-app` instead of `what init my-app`.
Place page files in `src/pages/` or change `pagesDir` in config.
Ensure your proxy supports WebSocket upgrade headers.
Run the CLI via `npx what-framework-cli dev` or install it globally with `npm install -g what-framework-cli`.
Add `"type": "module"` to your package.json or rename config file to `.mjs`.
Create a `what.config.js` file in your project root with the appropriate configuration.
Export an object with a valid `mode` field, e.g., `export default { mode: 'static' }`.No dependency data recorded yet.