https://github.com/cedricblondeau/magento2-module-catalog-import-command
:m::two: A Magento2 console command to import catalog files.
https://github.com/cedricblondeau/magento2-module-catalog-import-command
catalog-files csv magento
Last synced: about 1 month ago
JSON representation
:m::two: A Magento2 console command to import catalog files.
- Host: GitHub
- URL: https://github.com/cedricblondeau/magento2-module-catalog-import-command
- Owner: cedricblondeau
- Created: 2015-12-30T01:29:14.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-21T08:09:14.000Z (over 8 years ago)
- Last Synced: 2025-08-21T01:28:18.596Z (7 months ago)
- Topics: catalog-files, csv, magento
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 32
- Watchers: 8
- Forks: 15
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# magento2-module-catalog-import-command
A console command for importing catalog files.
## Install
```bash
composer require cedricblondeau/magento2-module-catalog-import-command
php bin/magento module:enable CedricBlondeau_CatalogImportCommand
php bin/magento setup:upgrade
```
## Usage
```bash
php bin/magento catalog:import [-i|--images_path[="..."]] [-b|--behavior[="..."]] csv_file
```
- `--images_path`: (default `pub/media/catalog/product`) must be a relative path starting from your Magento2 project root
- `--behavior`: (default `append`) possible values: append, add_update, replace, delete
- csv_file: could be a relative or an absolute path to a valid CSV file
## Inspiration
- https://github.com/magento/magento2-sample-data/tree/develop/app/code/Magento/ConfigurableSampleData