Requirements: CSVI 4+
The cron command is a combination of a few settings:
Let's take a closer look at these requirements.
The PHP executable is the program that processes the cron script. How the PHP executable is called completely depends on your host, check with them where your PHP executable resides. Some examples of the PHP executable are:
The file that starts the import or export is called cron.php, this file can be called directly from the command line. The file is located in /administrator/components/com_csvi/helpers/cron.php. It is important to know where the file is as you need to use the path to build the cron command. The full path needs to be the complete path to the cron.php file. The full path depends on your host, check with them what your path needs to be. Some examples of the full path are:
There are several arguments that need to be passed on to make the cron work. These arguments are:
This must be a known user in the Joomla system that has backend access.
The password belonging to the supplied username.
The name of the template that needs to be used. This must exactly match the name of the template in the template list. Instead of using the template name, the template ID can also be used.
/usr/local/bin/php /home/domain/public_html/administrator/components/com_csvi/helpers/cron.php username="admin" passwd="admin" template_name="CSVI Product import" filename="/home/domain/public_html/example.csv"
/usr/local/bin/php /home/domain/public_html/administrator/components/com_csvi/helpers/cron.php username="admin" passwd="admin" template_id="123" filename="/home/domain/public_html/example.csv"
Including the arguments the full command for an export can look like this:
/usr/local/bin/php /home/domain/public_html/administrator/components/com_csvi/helpers/cron.php username="admin" passwd="admin" template_name="CSVI Product export"
/usr/local/bin/php /home/domain/public_html/administrator/components/com_csvi/helpers/cron.php username="admin" passwd="admin" template_name="124"
Including the arguments the full command for a maintenance task can look like this:
/usr/local/bin/php /home/domain/public_html/administrator/components/com_csvi/helpers/cron.php username="admin" passwd="admin" task="maintenance" operation="emptydatabase"
Make sure this command is all on one line. In a cronjob you cannot span an entry across multiple lines.
![]()
CSVI includes a cron generator option and this is located on the supported pages in the top right corner. This button creates the cron command, however you still need to update the command with the correct PHP executable and username/password.
All settings from the template will be used when importing or exporting data. It is possible to use specific settings for a specific cron job. To add these specific settings, after loading the template, make the changes to the template and then click on the cron command. You will now get a cron command with all the changed settings. The command can look like this:
php "D:\server\www\csvi4pro/administrator/components/com_csvi/helpers/cron.php" username="" passwd="" template_id="119" jform:general:category_separator="/"
How to setup the cron command depends on your host. Check with them how to set it up for your site. There are 2 control panel systems used often, these are cPanel and DirectAdmin, instructions for these follow here.




The output has been optimized for command line output, this means there is no HTML code. This can be forwarded (piped) to a file for later analyzes.