1. Home
  2. Docs
  3. Application Framework
  4. CLI Reference
  5. update-database


$ wp mwp update-database <slug>

If your local machine database schema is not up to date with the plugin build meta, then you can bring your local machine up to date by using this command. Typically, this is needed when pulling changes from a repository which includes new schema updates for the plugin, or if you are cloning an existing plugin repository with a schema that is not present on your local machine.


<slug> (required) The slug (directory) of the plugin to update the database for


$ wp mwp update-database acmecompany-gizmo
Created table wp_acme_gizmos
Success: Database schema updated.

Was this article helpful to you? Yes No

How can we help?