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.
|
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:
product-import_20190608-114344_01.csv
<IMPORT-DIRECTORY>/<PREFIX>_<FILENAME>_<COUNTER>.<SUFFIX>
- <IMPORT-DIRECTORY>:
-
is by default the loation of your working directory
<ROOT-DIRECTORY>/var/pacemaker/import/
-
The
var/pacemaker/import
directory is not created after the installation by default
-
- PREFIX:
-
The
<PREFIX>
of the import filename represents theproduct-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:
|
Your CSV file var/pacemaker/import/product-import_20190608-114344_01.csv
is now ready for import.
Example
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 |
-
see CLI shortcuts