PHPackages                             shockwavemk/magento2-module-console-staging - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. shockwavemk/magento2-module-console-staging

ActiveMagento2-module

shockwavemk/magento2-module-console-staging
===========================================

Magento2 Command-Line Tools For Staging Support

v1.0.0(10y ago)6361PHP

Since Mar 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/shockwavemk/magento2-module-console-staging)[ Packagist](https://packagist.org/packages/shockwavemk/magento2-module-console-staging)[ RSS](/packages/shockwavemk-magento2-module-console-staging/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Magento2 Command-Line Tools For Staging Support
===============================================

[](#magento2-command-line-tools-for-staging-support)

A Magento2 setup for a well structured development process needs the setup of development, integration and production environments.

While staging the database from production server to integration with help of backup console command (bin/magento setup:backup) minor repeating problems occur: Some settings defined in database have to be changed on staging, for example 'web/secure/base\_url'.

In order to avoid this repeating task, it should be possible to define different config files overriding this settings in database. That is the purpose of this module.

[![](./files/command-details.png)](./files/command-details.png)

Installation
============

[](#installation)

Add the module to your composer file.

```
{
  "require": {
    "shockwavemk/magento2-module-console-staging": "dev-master"
  }
}
```

Install the module with composer

```
    composer update
```

On succeed, install the module via bin/magento console:

[![](./files/module-status.png)](./files/module-status.png)

```
    bin/magento cache:clean

    bin/magento module:install Shockwavemk_Staging

    bin/magento setup:upgrade
```

You should be able to see a new command in bin/magento console:

[![](./files/new-command.png)](./files/new-command.png)

Usage
=====

[](#usage)

Create configuration file
-------------------------

[](#create-configuration-file)

Create a configuration php file in your project directory (or a subfolder or elsewhere on your server)

```
