$request->cli()

Checks if this request is comming from the command line

  • return (boolean)
if(kirby()->request()->cli()) {
  echo 'This request is comming from the command line'
}