dentikhonov/magento-cli-entity-export

Import catalog via console command with entity

dev-master 2020-08-20 18:22 UTC

This package is auto-updated.

Last update: 2025-05-21 05:03:28 UTC


README

A console command for importing catalog files.

Install

composer require dentikhonov/magento-cli-entity-export
php bin/magento module:enable DenTikhonov_CliImportCommand 
php bin/magento setup:upgrade

Usage

php bin/magento catalog:import [-i|--images_path[="..."]] [-b|--behavior[="..."]] [-b|--entity[="..."]] 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