Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Running the Data Population CLI Tool

Running the Data Population CLI Tool

  • Ensure that the dataDirectory contains the following sub-directories:
    • config
    • data
    • environments
    • schema
  • Ensure that the dataDirectory specified is the parent directory of the four of the directories, not the data sub-directory.

Do one of the following:
  • For Linux-based Operating Systems, run data-population.sh.
  • For Windows-based Operating Systems, run data-population.bat.
For Linux-based operating systems that is running from the development environment
cd data-population/ext-data-population-cli/target/ext-data-population-cli-1.0-SNAPSHOT
./data-population.sh --dataDirectory ../../../../database/ext-data/target/classes/
        --configDirectory ../../../../database/ext-data/target/classes/environments/local
        [update-db|reset-db]

Example: For Windows-based operating systems that is running from development environment

cd data-population\ext-data-population-cli\target\ext-data-population-cli-1.0-SNAPSHOT
 
data-population.bat --dataDirectory ..\..\..\..\database\ext-data\target\classes\ --configDirectory ..\
..\..\..\database\ext-data\target\classes\environments\local [update-db|reset-db]

Example: For Linux from an external configuration directory

./data-population.sh --dataDirectory /home/epuser/ep/workspace/data-population --configDirectory /etc/ep/conf/prod-data-population/ [update-db|reset-db]