$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'
}

Is something missing or incorrect? Edit this page on Github…