API / Minn\Cli / MinnCommand

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

Used by 1

Public

methodversion(array $args, array $assocArgs): void#

Prints the engine version.

methodprobe(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.

methodinfo(array $args, array $assocArgs): void#

Prints the engine's version and where it runs from.

methodcron(array $args, array $assocArgs): void#

Runs the engine's scheduled work: due posts go live, expired rows are swept.

methodmail(array $args, array $assocArgs): void#

Sends a test email through the site's mail settings.

## OPTIONS

<to> : The address to send to.

methodpreflight(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.

methodinstall(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.

methodupdate(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.

methodeject(array $args, array $assocArgs): void#

Removes the engine and puts WordPress's files back.

## OPTIONS

[<webroot>] : The webroot. Defaults to the current directory.

methodstatus(array $args, array $assocArgs): void#

Says whether a webroot runs WordPress or the engine.

## OPTIONS

[<webroot>] : The webroot. Defaults to the current directory.

methodscripts(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.

methodrecovery(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.

privateinstaller(string $command, array $args, array $assocArgs): void#
privateparkedTree(): ?string#

The WordPress the swap parked beside this webroot, when the manifest names one.

privateengineVersion(): string#