PHP code example of shockwavemk / magento2-module-console-staging

1. Go to this page and download the library: Download shockwavemk/magento2-module-console-staging 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/ */

    

shockwavemk / magento2-module-console-staging example snippets



    
    return array (
        'default' =>
            array(
                '0' => array(
                    'web/unsecure/base_url' => 'http://dev.example.com',
                    'web/secure/base_url' => 'https://dev.example.com'
                )
            )
        );
        
bash

    < project-path >/bin/magento staging:config:set ./db-config.php
    
bash

    < project-path >/bin/magento staging:config:get ./db-config.php