orba/module-sample-data

This package is abandoned and no longer maintained. The author suggests using the lingaro/module-sample-data package instead.

Orba sample data module

Installs: 122

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 4

Forks: 2

Open Issues: 1

Type:magento2-module

0.1.0 2020-05-13 11:43 UTC

This package is auto-updated.

Last update: 2023-06-07 10:59:38 UTC


README

Module adds command to dump media product images with some limitations:

  • Selective products SKUs
  • Total max products images size

It allows you to make convenient-size data snapshots for project/developers/CICD processes. You can filter only needed products including various products types or limit total images weight to given size.

Install

composer require orba/module-sample-data
bin/magento setup:upgrade

Usage

bin/magento orba:sampledata:media [--skus=SKU1,SKU2,...] [--max-size=N] [--maintenance]
  • --skus=SKU1,SKU2,... - Optional, filter comma separated SKUs
  • --max-size=N - Optional, allowes to limit aggregated size of product images to N (in MB).
  • --maintenance - Optional, enable maintenance mode

Result tgz file will be placed in var/backups directory.

Only product selection

Complex product children will be attached into the dump too.

bin/magento orba:sampledata:media --skus=WJ10,WJ11,WJ12

Limit product images size

In this case product images will be limited to 20MB.

bin/magento orba:sampledata:media --max-size=20

Mixed filters

bin/magento orba:sampledata:media --skus=WJ10,WJ11,WJ12 --max-size=20

Full dump

bin/magento orba:sampledata:media