Download the PHP package yvoronoy/m2install without Composer
On this page you can find all versions of the php package yvoronoy/m2install. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yvoronoy/m2install
More information about yvoronoy/m2install
Files in yvoronoy/m2install
Package m2install
Short Description Magento 2 Bash Install/Restore Script
License GNU
Informations about the package m2install
Magento 2 Bash Install/Restore Script
This script is designed to simplify the installation process of Magento 2 and rapid deployment of merchant code and DB dumps.
m2install can be a helpful tool for support teams and teams who often need to install or deploy merchant backups or dumps.
The main purpose of this script is run m2install, wait a bit and get a working magento instance. Don't waste time on routine operations.
If you have any issues please report them to https://github.com/yvoronoy/m2install/issues
What can m2install exactly do?
- Can automatically restore backup files created by
php bin/magento setup:backup --code --db
- Can automatically restore support dumps created by Enterpsie Support Tool
php bin/magento support:backup:code (db)
- Script can automatically install vanilla magento
Installation
Download latest version by curl
You can install by composer
In case you are using bash completion you can download completion for this script.
Usage
How to deploy backup/support dumps
In order to deploy the customer dumps you need:
- Put DB and code dumps to new directory
- Go to directory and run m2install
How to install Magento 2 using GIT
To install Magento 2 from git repository run m2install with --source git param
- or
How to install Magento 2 using Composer
To install Magento 2 from composer run m2install with --source composer param
- or
How to Install Magento 2 with Sample Data
- Run m2install
- Use wizard to install the sample data.
How to Install Magento 2 with B2B extension
With wizard
- Run m2install
- Use wizard to install the B2B
With CLI flags
- or
- if you already have Magento EE
Remember that you have to install Enterprise Edition to be able to install B2B extension
Wizard
m2install shows you wizard on first run and prompts to save entered values to config file.
How to use configuration files
The config file allows you to store params for DB and URL. Example of config file
When you first run m2install script, it shows wizard which prompts to save the config file to your home directory.
m2install uses fallback mechanism to find config files recursively from home directory to current directory. For example if you want to install magento to directory ~/www/m2/ga/magento2ee
you can override config file which is placed in your home directory.
How to use ssh tunnels for remote DB connection
Make sure that you have correct parameters in .m2install.conf file Parameters example:
As a result you will get:
All created ssh tunnels pids located in file kill_tunnel.sh in Magento root folder (or pub)
To run you will need only code dump file (Example code.tar.gz).
Make attention that in --remote-db databasename first part before "" is database user name
Make attention that in bootstrap added SECURE and UNSECURE BASE_URL to prevent DB modification