CliModule::getCliCommands()

Get array of allowed commands

This is used only for rendering help when user enters no command or when they request a list of commands.

Returned array keys are command names and values are 1-line labels Or it can be a regular PHP array of command names if labels are not needed. Or it can just be a string of whatever you want, and ProcessWire will output it as-is.

Usage

$string = $cliModule->getCliCommands();

Return value

string

[]|string Example: [ 'hello' => 'Hello World' ] or [ 'hello' ]


CliModule methods and properties

API reference based on ProcessWire core version 3.0.269