The Aimeos Slim package provides some commands that can be executed from the command line shell. These scripts are:
For best performance, Aimeos caches the generated HTML of the components as long as the cache manager configuration option isn't set to "None". The cached HTML snippets are invalidated if their content is changed but sometimes you might want to clear the complete cache at once:
php <appdir>/vendor/aimeos/aimeos-slim/cache.php --config=<appdir>/src/aimeos-settings.php --extdir=<appdir>/ext/ [<sites>]
The cache.php command accepts an optional site code or list of site codes separated by white spaces. If no site code in given, the content caches of all sites are cleared.
Running a shop requires several tasks that need to be executed regularly like sending notification e-mails, update the product index or export orders to the ERP system. The jobs.php script is able to perform these task by calling the appropriate core job controllers. More details about the required jobs and their setup is available in the article about configuring the cronjobs.
php <appdir>/vendor/aimeos/aimeos-slim/jobs.php --config=<appdir>/src/aimeos-settings.php --extdir=<appdir>/ext/ <jobs> [<sites>]
At least one job name is required but you can hand over several job names at once if you separate them via white spaces.
The jobs.php script accepts an optional site code or list of site codes separated by white spaces. If no site code in given, the jobs are executed for all sites.
Creating the required database structure for Aimeos is done by the setup.php script in the Aimeos core package:
php <appdir>/vendor/aimeos/aimeos-core/setup.php --config=<appdir>/src/aimeos-settings.php --extdir=<appdir>/ext/ [--option="..."] <site> default
You can pass additional options to the setup tasks using the "--option=..." command line switch. If options require a value, the option name and value is separated by an colon (":"). Currently available is the following setup option:
The setup.php script accepts an optional site code. If no site code in given, the "default" site is assumed.