#!/usr/bin/env php systemDirectory, "\\/ ") . DIRECTORY_SEPARATOR . "bootstrap.php"; $app = require realpath($bootstrap) ?: $bootstrap; // Grab our Console $console = new CodeIgniter\CLI\Console($app); // We want errors to be shown when using it from the CLI. error_reporting(-1); ini_set("display_errors", "1"); // Show basic information before we do anything else. $console->showHeader(); // fire off the command in the main framework. $response = $console->run(); if ($response->getStatusCode() >= 300) { exit($response->getStatusCode()); }