Install as Composer Library
The Composer Library installation is the most used and preferred way in Magento 2 projects. |
Installation
- To deliver the Composer Library with your Magento 2 project, please add:
{
"require": {
"techdivision/import-cli-simple" : "4.1.0"
}
}
The Pacemaker Import Community - Composer Library Installation Option can also be used to install the importer in any standalone project. Therefore a |
to your Magento 2 composer.json
followed by the command
composer update
Structure
Project file structure after install
<PROJECT-ROOT>
├── composer.json
├── composer.lock
└── vendor
├── autoload.php
├── bin
│ ├── import-simple -> ../techdivision/import-cli-simple/bin/import-simple
│ └── import-simple.php -> ../techdivision/import-cli-simple/bin/import-simple.php
├── brick
├── composer
├── doctrine
├── goodby
├── jean85
├── jms
├── league
├── monolog
├── phpstan
├── psr
├── ramsey
├── swiftmailer
├── symfony
├── techdivision
│ ├── import
│ ├── import-app-simple
│ ├── import-attribute
│ ├── import-attribute-set
│ ├── import-category
│ ├── import-category-ee
│ ├── import-cli
│ ├── import-cli-simple
│ ├── import-configuration
│ ├── import-configuration-jms
│ ├── import-converter
│ ├── import-converter-customer-attribute
│ ├── import-converter-ee
│ ├── import-converter-product-attribute
│ ├── import-converter-product-category
│ ├── import-customer
│ ├── import-customer-address
│ ├── import-ee
│ ├── import-product
│ ├── import-product-bundle
│ ├── import-product-bundle-ee
│ ├── import-product-ee
│ ├── import-product-grouped
│ ├── import-product-grouped-ee
│ ├── import-product-link
│ ├── import-product-link-ee
│ ├── import-product-media
│ ├── import-product-media-ee
│ ├── import-product-msi
│ ├── import-product-tier-price
│ ├── import-product-url-rewrite
│ ├── import-product-variant
│ └── import-product-variant-ee
└── zendframework
Command
- To use the Pacemaker Import Community after the installation is complete, the following command is to use:
Example: main command call
<PROJECT-ROOT>/vendor/bin/import-simple <command>:<argument> <option>
Example: display a list of all existing commands
<PROJECT-ROOT>/vendor/bin/import-simple list
or
Example: display a list of all existing commands without the
list
argument<PROJECT-ROOT>/vendor/bin/import-simple