Magento Amazon Integration CLI Commands

This is an article from the Amazon.com Integration extension for Magento 2. We've tried our best in the preparation of this help article. If you do not find the answer you were looking for, you can always send us a message through this form.

The Magmodules Amazon integration for Magento 2 includes powerful CLI commands that allow store administrators and developers to automate key operations such as importing Amazon orders or testing the API connection. This guide covers the available commands and how to use them effectively within your Magento environment.

Available CLI Commands

magmodules-amazon:import-orders

This command triggers a manual import of orders from Amazon Marketplace into your Magento 2 store.

Usage:

php bin/magento magmodules-amazon:import-orders

What it does:
Fetches all eligible orders from Amazon based on your current configuration and imports them into Magento. This is especially useful for debugging or syncing orders outside the automatic schedule.

magmodules-amazon:test-connection

This command verifies the connection between your Magento store and Amazon’s API using the credentials set in the configuration.

Usage:

php bin/magento magmodules-amazon:test-connection

What it does:
Tests the configured Client ID, Client Secret, Application ID, and Token to confirm successful API communication with Amazon. Ideal for setup validation and troubleshooting connection issues.

When to Use CLI Commands

  • During initial setup – to confirm Amazon API credentials are working correctly.
  • For debugging – to manually fetch orders and test the connection if issues arise.
  • In cron/job scripts – integrate into custom automation workflows as needed.

Requirements

  • Magento 2 with the Magmodules Amazon integration installed and enabled
  • Valid Amazon API credentials set in the configuration
  • Access to the command line interface (CLI) of your Magento 2 installation

Pro Tip

Run php bin/magento list to confirm that the magmodules-amazon commands are registered correctly in your Magento CLI. If you don’t see them, ensure the module is installed and enabled, and then run:

php bin/magento module:enable Magmodules_Amazon
php bin/magento setup:upgrade
php bin/magento cache:flush

For more detailed configuration steps, refer to our Amazon credentials setup guide.

Direct Help

At Magmodules, our support team is here to help you every step of the way. If you can't find a solution in our Knowledgebase, simply fill in the form below. We are in the Central European Timezone, and all your details are securely sent to us.
The more information you provide, the better we can assist you. Trust us to guide you through any challenge and ensure a seamless experience with our products and services.
Support by e-mail contact@magmodules.eu
star star star star star
star star star star star
L vd B
Topservice van Magmodules dat maak je niet vaak meer mee! Toen we tegen vervelende problemen aanliepen met onze Mollie betalingen, klopten we in eerste instantie aan bij Mollie zelf. Helaas bleef een reactie lang uit en de hulp die wij kregen was niet echt constructief. Gelukkig bracht Frank van Magmodules daar meteen verandering in. Hij pakte het probleem direct op, dacht actief met ons mee en nam echt de tijd om alles helder uit te leggen. Niet alleen werd het probleem snel opgepakt, maar we leerden onderweg ook nog wat bij over de technische achtergrond. Kortom: Magmodules levert niet alleen een goed Magento product, maar staat er ook echt als het nodig is. Zo’n service zie je tegenwoordig niet vaak meer! Dankjewel Frank.
Google This week
star star star star star
star star star star star
Jeroen Custers
Zeer professionele Magento plugin developer met hele goede ondersteuning.
Google 17 days ago
star star star star star
star star star star star
Rick Manders
De snelheid van reageren en het niveau van meedenken zijn bewonderingswaardig! Uniek bij een modulebouwer! Een kleine vijf jaar ervaring met Magmodules en telkens staan ze voor je klaar bij inhoudelijke vragen. Goed bezig.
Google 20 days ago
star star star star star
star star star star star
Richard van Beckhoven
Excellent service yet again from the Magmodules team that provide super support, quickly understand the issues and deliver solutions that are stable and work. Greatly appreciate your help.
Google 24 days ago
star star star star star
star star star star star
Ernests Roberts Verins
the support responded very quickly
Google 13 Mar 2025
star star star star star
star star star star star
Jesse Williams
I've been using their google reviews software for a year now, without issues. I had a question recently and emailed them, and was responded to within a fee hours. Fantastic service. Truly great.
Google 06 Mar 2025
star star star star star
star star star star star
Smart Ink
Al lange tijd klant. Gebruik diverse software. Indien je iets niet weet wordt je altijd netjes en snel geholpen!
Google 06 Mar 2025
star star star star star
star star star star star
Paul Leenheer
Support op Mollie module voor Magento 1 gekregen waar deze toch al een tijdje end of life is! Dat zijn partners waar je wat aan hebt. Goed voor je merk (Mollie), goed voor je eigen dienstverlening en goed voor henzelf. TOP!
Google 19 Feb 2025
star star star star star
star star star star star
Redhound Algemeen
Super goede support, snel opgepakt en fijne communicatie, ga zo door!
Google 04 Feb 2025
star star star star star
star star star star star
Simply Baby
I had some styling issues with the Mollie Payments extension on my website and Frank has been incredibly responsive and helpful with fixing these issues. Within 30 minutes of activating the extension for Frank to investigate he came back to me with the resolution and the extension now displays precisely as it should.
Google 27 Jan 2025