WP-CLI
Reference: WP-CLI
Every terminal command, starting with wp ugly-fields, with its options.
In this chapter
Before you start 2
The commands 8
- list Prints a table of every group.
- check Checks every JSON file of your theme the way the builder would. For each file that is not valid, it prints a warning with the key and the reason. If there is at least one, the command ends…
- sync The database takes the JSON files of your theme that are different from it. This is what a deploy needs.
- export Writes all the groups, options pages and content types to one JSON file.
- import Saves the groups, options pages and content types of a file made by export.
- upgrade Brings what is stored up to date. It also happens by itself the next time someone opens the admin, so you rarely need it. Use it in a deploy to do it on your terms, before the first visitor.
- report The support report: versions, active plugins, settings, the definitions of your groups and the errors the plugin recorded. It is the same report as Settings → Support → Copy report, for…
- clear-errors Empties the list of errors the plugin has recorded (the list Settings → Support shows).
In practice 2
No page matches. Try another word.
Where to go next
| You want to… | Read |
|---|---|
| Understand Sync | Files, Sync and the terminal |
| Plan a deploy | Updating, backing up, moving and uninstalling |
| Follow a project end to end | Tutorials |
Did this article answer your question?
Thank you. It helps us make the documentation better. Need more help?