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.

Magento Amazon Integration CLI Commands

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
Matt Austin
Possibly the fastest support response times of any Magento Extension vendor. Great extensions too!
Google This week
star star star star star
star star star star star
Jan Privé
Dankzij de heldere uitleg en snelle reactie van Magmodules kon mijn vraag, en dus mijn Magento-probleem, binnen enkele uren worden beantwoord. Doeltreffend, zonder moeilijke termen, gewoon zo als het zou moeten zijn.... Bedankt!
Google Last week
star star star star star
star star star star star
Denis Metzler
To evaluate a provider, it is not enough to consider only the product offered, but also its after-sales service, such as support and troubleshooting. Magmodules has been extremely satisfactory at all levels on multiple occasions and sets the bar at the top when comparing the competition.
Google Last week
star star star star star
star star star star star
Bleijenberg winkelinrichting en materialen
Goed bereikbaar, reageren snel en denken oplossingsgericht. Een aanrader.
Google 30 Jul 2025
star star star star star
star star star star star
Patrick Verduijn
Magmodules biedt plugins aan die van hoge kwaliteit zijn tegen een goede prijs, waar dit bedrijf in uitblinkt is de bereidheid om de zeldzame feedback & problemen met de plugins te willen onderzoeken, mee te willen denken in het debuggen van problemen en goede oplossingen toe te passen. In mijn decennium ervaring met Magento & 3th parties is Magmodules absoluut een uniqum binnen de markt.
Google 25 Jul 2025
star star star star star
star star star star star
Erik de Groot
Magemodules heeft hele sterke Magento extensies en een proactieve support. Al jaren heel erg tevreden over jullie service en producten!
Google 18 Jul 2025
star star star star star
star star star star star
René Zeuner
We are using the Mollie Magento extension from Magmodules. It works excellently without flaws. Very fast, competent and friendly support. Thanks!
Google 30 Jun 2025
star star star star star
star star star star star
R. U.
Erg goed team, reageren snel en duidelijk en hebben met toegang tot onze database erg goed geholpen (eigenlijk een gratis customization).
Google 18 Jun 2025
star star star star star
star star star star star
Hugo de Groot
Uitstekende support! Wij gebruiken o.a. de Rich Snippets Suite extensie voor onze Magento 2 webshop (Hyvä) en hadden een specifieke vraag over structured data op PLP-pagina’s. Binnen no-time kregen we een inhoudelijk en duidelijk antwoord. Zeer prettig contact en goed onderbouwde uitleg. Absoluut een betrouwbare partner voor Magento-extensies!
Google 13 Jun 2025
star star star star star
star star star star star
Rick Manders
Dit is nog eens een modulemaker! Stopt niet tot het werkt, blijft enthousiast. Grote dank!
Google 04 Jun 2025