Add copy cli.php code