#!/usr/bin/env php publicDirectory, '/'); // Path to the front controller define('FCPATH', realpath($public).DIRECTORY_SEPARATOR); // Ensure the current directory is pointing to the front controller's directory chdir('public'); $app = require rtrim($paths->systemDirectory,'/ ').'/bootstrap.php'; // 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 the main framework. $console->run();