PHP code example of prestashop / autoupgrade

1. Go to this page and download the library: Download prestashop/autoupgrade library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

prestashop / autoupgrade example snippets


$ php cli-upgrade.php --dir=admin-dev --channel=major

$ php cli-rollback.php  --dir=admin-dev --backup=V1.7.5.1_20190502-191341-22e883bd