WP Kernel API / @wpkernel/cli / StartCommand
Class: StartCommand
Clipanion command that watches kernel sources, regenerates artifacts, and launches the Vite dev server for UI development.
Extends
Command
Extended by
Constructors
Constructor
ts
new StartCommand(): StartCommand;
Returns
StartCommand
Inherited from
ts
Command.constructor
Properties
paths
ts
static paths: string[][];
Paths under which the command should be exposed.
Overrides
ts
Command.paths
usage
ts
static usage: Usage;
Contains the usage information for the command. If undefined, the command will be hidden from the general listing.
Overrides
ts
Command.usage
verbose
ts
verbose: boolean;
autoApplyPhp
ts
autoApplyPhp: boolean;
Methods
execute()
ts
execute(): Promise<WPKExitCode>;
Standard function that'll get executed by Cli#run
and Cli#runExit
.
Expected to return an exit code or nothing (which Clipanion will treat as if 0 had been returned).
Returns
Promise
<WPKExitCode
>
Overrides
ts
Command.execute