dnafactory/module-data-seeder

There is no license information available for the latest version (1.0.4) of this package.

This module helps you to save and import some of magento 2 entities (such as Blocks, Pages, Configurations and Email).

Installs: 1 807

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:magento2-module

1.0.4 2023-11-14 13:51 UTC

This package is not auto-updated.

Last update: 2024-05-14 16:14:24 UTC


README

This module helps you to save and import some of magento 2 entities (such as Blocks, Pages, Configurations and Email).

Before use it, you have to cpyt the content of 'assets' folder in your project root folder. The structure should be exactly the same:

- app
- pub
- ...
- assets
    - seeder
        - blocks
            - contents
        - configs
        - dumps
        - pages
            - contents

Config Import

There is an import command for all the listed entities.

To import the configuration you have to use:

bin/magento dnafactory:seeder:import-config environment config-filename

There are two types of config:

  • environment config
  • shared config

the environment config contains only the configuration that should be set for a specific environment, such as 'production'. For this the environment param should be config-filename.environment.php (ex: config.production.php)

the shared config instead, contains the configuration shared between all the environments. In the command you can specify the filename. (ex. and default: config.php)