How to pass parameters to a PHP script executed through the command line Posted on January 28, 2010 by unai The syntax to pass parameters to PHP scripts executed command line is: php script.php arg1 arg2 arg3 For more information: Control your scripts with command-line PHP PHP CLI: Sending parameters via command line