4 * This file is part of the TYPO3 CMS project.
6 * It is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU General Public License, either version 2
8 * of the License, or any later version.
10 * For the full copyright and license information, please read the
11 * LICENSE.txt file that was distributed with this source code.
13 * The TYPO3 project - inspiring people to share!
17 * Command Line Interface module dispatcher
19 * This script takes a "cliKey" as first argument and uses that to dispatch
20 * the call to a registered script with that key.
21 * Valid cliKeys must be registered in
22 * $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys'].
24 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
26 define('TYPO3_MODE', 'BE');
27 define('TYPO3_cliMode', TRUE);
29 require __DIR__
. '/sysext/core/Classes/Core/CliBootstrap.php';
30 \TYPO3\CMS\Core\Core\CliBootstrap
::checkEnvironmentOrDie();
32 require __DIR__
. '/sysext/core/Classes/Core/Bootstrap.php';
33 \TYPO3\CMS\Core\Core\Bootstrap
::getInstance()->run('typo3/')->shutdown();