Skip to content

Kirby 5.0.4

$request->cli()

Checks if the request has been made from the command line

$request->cli(): bool

Return type

bool

This method modifies the existing $request object it is applied to and returns it again.

Parent class

Kirby\Http\Request