#!/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. if (is_int($suppress = array_search('--no-header', $_SERVER['argv'], true))) { unset($_SERVER['argv'][$suppress]); // @codeCoverageIgnore $suppress = true; } $console->showHeader($suppress); // fire off the command in the main framework. $response = $console->run(); if ($response->getStatusCode() >= 300) { exit($response->getStatusCode()); }