1. Home
  2. Docs
  3. Application Framework
  4. CLI Reference
  5. add-js


$ wp mwp add-js <slug> <name>

This command adds a new javascript modules to your plugin.


<slug> (required) The slug (directory) of the plugin to add to
<name> (required) The name of the new javascript file


$ wp mwp add-js acmecompany-gizmo gizmo-module.js
Creating new javascript module...
Javascript module added succesfully.

Was this article helpful to you? Yes No

How can we help?