lingaro / module-sample-data
Lingaro sample data module
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 2
Open Issues: 1
Type:magento2-module
Requires
- php: ^7.4 || ^8.1
- magento/framework: *
This package is auto-updated.
Last update: 2024-12-07 10:27:55 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 lingaro/module-sample-data
bin/magento setup:upgrade
Usage
bin/magento lingaro: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
Only product selection
Complex product children will be attached into the dump too.
bin/magento lingaro:sampledata:media --skus=WJ10,WJ11,WJ12
Limit product images size
In this case product images will be limited to 20MB
bin/magento lingaro:sampledata:media --max-size=20
Mixed filters
bin/magento lingaro:sampledata:media --skus=WJ10,WJ11,WJ12 --max-size=20
Full dump
bin/magento lingaro:sampledata:media