Usage

After installation, the importer is ready-to-run.

In the root directory of your Magento 2 installation, you do not need to specify the configuration for the Workflow Engine specifically.

  • The importer reads the configuration file app/etc/env.php and loads the Magento Edition/Version and database configuration

  • The importer looks for CSV files in the var/importtexport directory by default

Pacemaker Import Community provides the command import:products command for the product import.

The individual parts of the file name must match the pattern as followed:
<IMPORT-DIRECTORY>/<PREFIX>_<FILENAME>_<COUNTER>.<SUFFIX>
<IMPORT-DIRECTORY>:

is by default the loation of your working directory <ROOT-DIRECTORY>/var/pacemaker/import/

PREFIX:

The <PREFIX> of the import filename represents the product-import area.

DELIMITER ( _ ):

The mandatory Delimiter ( _ ) for the import filename between <PREFIX> and <FILENAME> is a underscore ( _ ).

FILENAME:

The filename is a autogenerated combination of date and time.

  • As a result, the filename look like product-import_20190608-114344_01.csv.

DELIMITER ( _ ):

The mandatory Delimiter ( _ ) for the structured filename between <FILENAME> and <COUNTER> is underscore ( _ ).

COUNTER:

is a incremental number with two digits starting with 01.

SUFFIX (filename extension):

The Pacemaker Import Community uses the <SUFFIX> .csv as default for the import files.

.OK file:
Bunch import:
  • The Bunch import requires the same predefined filename structure as described.

Your CSV file var/pacemaker/import/product-import_20190608-114344_01.csv is now ready for import.

Example

Run the Import
vendor/bin/import-simple import:create:ok-file \
&& vendor/bin/import-simple import:products

The first command creates the mandatory .OK file and signals that all import artifacts are on-place. The second command finally starts the import with the add-update operation on your Magento 2 installation.

Import commands support only one argument but multiple options