mlc

Magento local.xml generator script

Usage no npm install needed!

<script type="module">
  import mlc from 'https://cdn.skypack.dev/mlc';
</script>

README

mlc - npm version

Magento local.xml generator script

Install

npm install --global mlc

Usage

mlc [--key <encription key>] [--db_prefix <db_prefix>] [--db_host <db host> ]

Example

cd /your/magento/project
mlc --db_user magentouser --db_password password --db_name magentodb

Default options

{
    date: <current time>,
    key: <random key>,
    db_prefix: '',
    db_host: '127.0.0.1',
    db_user: 'magentouser',
    db_pass: 'password',
    db_name: 'magentodb',
    db_init_statemants: 'SET NAMES utf8',
    db_model: 'mysql4',
    db_type: 'pdo_mysql',
    db_pdo_type: '',
    session_save: 'files',
    admin_frontname: 'admin'
}

Licence

Licensed under the MIT license.