Skip to content

CLI commands ​

Install @mndw/cli in your plugins project as described in project setup. Run commands with npx mndw from that project, passing the plugin folder as <plugin-dir>.

CommandPurposeGuide
createnpx mndw create <name> scaffolds a widget or page.Project setup
devnpx mndw dev <plugin-dir> runs a plugin with the development host.Local development
validatenpx mndw validate <plugin-dir> checks its manifest, entry, and locale catalogs.Validation and packaging
packnpx mndw pack <plugin-dir> builds the frontend and stages runtime files in dist/.Validation and packaging
zipnpx mndw zip <plugin-dir> creates an upload archive.Validation and packaging

For example, validate and package the hello-widget plugin folder from the plugins project:

sh
npx mndw validate hello-widget
npx mndw pack hello-widget
npx mndw zip hello-widget

Built from the mndw repository documentation.