Akeneo - Console commands
  • 1 Minute To Read
  • Print
  • Share
  • Dark
    Light

Akeneo - Console commands

  • Print
  • Share
  • Dark
    Light

The following console commands are available in your project after successful installation of the Akeneo module. Run them one by one.

1) Command to import super attributes:
vendor/bin/console middleware:process:run -p SUPER_ATTRIBUTE_IMPORT_PROCESS -o data/import/maps/super_attribute_map.json

2) Command to prepare locale mapping:
vendor/bin/console middleware:process:run -p LOCALE_MAP_IMPORT_PROCESS -o data/import/maps/locale_map.json

3) Command to prepare products attributes mapping:
vendor/bin/console middleware:process:run -p ATTRIBUTE_MAP_PROCESS -o data/import/maps/attribute_map.json

4) Command to import categories:
vendor/bin/console middleware:process:run -p DEFAULT_CATEGORY_IMPORT_PROCESS

5) Command to import products attributes:
vendor/bin/console middleware:process:run -p ATTRIBUTE_IMPORT_PROCESS

6) Command to prepare product models data in local file:
vendor/bin/console middleware:process:run -p PRODUCT_MODEL_PREPARATION_PROCESS -o data/import/maps/product_models.json

7) Command to import product model data (abstract products):
vendor/bin/console middleware:process:run -p DEFAULT_PRODUCT_MODEL_IMPORT_PROCESS -i data/import/maps/product_models.json

8) Command to prepare products data in local file:
vendor/bin/console middleware:process:run -p PRODUCT_PREPARATION_PROCESS -o data/import/maps/products.json

9) Command to import product data (concrete products):
vendor/bin/console middleware:process:run -p DEFAULT_PRODUCT_IMPORT_PROCESS -i data/import/maps/products.json
  1. On a project level, you can change DefaultProductImportDictionary instead of using the EnrichAttributes translator function or extending it.
  2. Price attributes (pim_catalog_price_collection), except the one with attribute_key = 'price', are skipped. For correct import, products should contain an attribute with attribute_type pim_catalog_price_collection and attribute_key 'price'.
Was This Article Helpful?