MinnCommand final class
Minn\Cli\MinnCommand · public/minn/src/Minn/Cli/MinnCommand.php · 319 lines
Identifies the engine.
## EXAMPLES
wp minn version wp minn info wp minn probe
Public
| method | version(array $args, array $assocArgs): void# | Prints the engine version. |
| method | probe(array $args, array $assocArgs): void# | Prints the inventory CaptainCore gathers from inside WordPress: plugins, themes, must-use plugins, core version, home. One `key:value` line per field; JSON values have no newlines. Split on the first colon only. |
| method | info(array $args, array $assocArgs): void# | Prints the engine's version and where it runs from. |
| method | cron(array $args, array $assocArgs): void# | Runs the engine's scheduled work: due posts go live, expired rows are swept. |
| method | mail(array $args, array $assocArgs): void# | Sends a test email through the site's mail settings. ## OPTIONS <to> : The address to send to. |
| method | preflight(array $args, array $assocArgs): void# | Says what a WordPress webroot will and will not get from the engine. ## OPTIONS [<webroot>] : The webroot to inspect. Defaults to the current directory. |
| method | install(array $args, array $assocArgs): void# | Parks WordPress and installs the engine into a webroot. ## OPTIONS [<webroot>] : The webroot. Defaults to the current directory. [--park=<dir>] : Where WordPress's own files go. Defaults to wp-parked beside the webroot. [--force] : Install even when preflight is RED. |
| method | update(array $args, array $assocArgs): void# | Replaces this engine with the latest Minn release from the update service, checked against its signature. ## OPTIONS [--check] : Only say whether a newer release is out. |
| method | eject(array $args, array $assocArgs): void# | Removes the engine and puts WordPress's files back. ## OPTIONS [<webroot>] : The webroot. Defaults to the current directory. |
| method | status(array $args, array $assocArgs): void# | Says whether a webroot runs WordPress or the engine. ## OPTIONS [<webroot>] : The webroot. Defaults to the current directory. |
| method | scripts(array $args, array $assocArgs): void# | The site's script pack: the GPL `wp-*` JavaScript packages the engine does not reimplement, which a few plugin front ends need (the WooCommerce block cart and checkout). The engine never ships them; this installs them into the site's own wp-content, from the WordPress the swap parked beside the webroot, or from any WordPress tree named with --from. ## OPTIONS [<action>] : status (the default), install, or remove. [--from=<path>] : A WordPress tree to take the packages from. Defaults to the parked copy the install recorded. |
| method | recovery(array $args, array $assocArgs): void# | The extensions recovery paused after they killed a request, and the way back. A plugin or theme that fatals is paused so the next request answers without it; nothing loads it again until it is resumed here. ## OPTIONS [<action>] : status (the default), resume, or resume-all. [<name>] : For resume: the plugin file or theme slug to let back in. [--theme] : Treat the name as a theme rather than a plugin. |
Internals 3
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
Nothing matches.