CLI Commands
Run Bol.com integration commands from the terminal for testing, debugging, and manual operations.
Usage: Run from your Magento root directory.
Test Connection
Test API connectivity for your Bol.com accounts.
# Test all accounts
bin/magento magmodules-bol:test-connection
# Test specific account
bin/magento magmodules-bol:test-connection 1
Output:
- Success: Confirms API connection works
- Failure: Shows error message with details
Use when:
- Setting up a new account
- Troubleshooting API issues
- Verifying credentials after changes
Import Orders
Import orders from Bol.com into Magento.
# Import from all accounts
bin/magento magmodules-bol:import-orders
# Import from specific account
bin/magento magmodules-bol:import-orders 1
What it does:
- Fetches open orders from Bol.com API
- Creates Magento orders for new items
- Updates order statuses as needed
Use when:
- Testing order import setup
- Manually importing after downtime
- Debugging order import issues
Export Offers
Export product offers to Bol.com.
bin/magento magmodules-bol:export-offers
What it does:
- Collects offers pending export
- Sends offer data to Bol.com API
- Updates local sync status
Use when:
- Testing offer export setup
- Forcing immediate sync
- After bulk product updates
Export Shipments
Export shipment information to Bol.com.
bin/magento magmodules-bol:export-shipments
What it does:
- Finds shipments pending export
- Sends shipment data to Bol.com
- Updates export status
Use when:
- Testing shipment export
- Syncing after manual shipment creation
- Recovering from export failures
Import Competing Offers
Fetch competitor pricing data from Bol.com.
bin/magento magmodules-bol:import-offer-lists
What it does:
- Gets competing offer data for your EANs
- Stores competitor prices and conditions
- Updates Competing Offers grid
Use when:
- Analyzing competition manually
- Updating pricing strategy
- Checking market position
Process Product Profiles
Process product profiles to generate or update offers.
bin/magento magmodules-bol:process-product-profiles
What it does:
- Evaluates profile conditions against products
- Creates new offers for matching products
- Updates existing offers with profile changes
- Removes offers for non-matching products
Use when:
- After creating/editing profiles
- After bulk product imports
- Testing profile conditions
Process Queue
Process the synchronization queue.
bin/magento magmodules-bol:process-queue
What it does:
- Processes pending queue items
- Executes scheduled sync operations
- Handles retry logic for failed items
Use when:
- Queue processing is delayed
- Clearing backlog manually
- Debugging sync issues
Common Options
Most commands support these patterns:
# Verbose output
bin/magento magmodules-bol:command-name -v
# Very verbose output
bin/magento magmodules-bol:command-name -vv
# Debug output
bin/magento magmodules-bol:command-name -vvv
Automation
Cron Jobs
Commands run automatically via cron. Configure frequencies at:
Location: Stores → Configuration → Bol.com → Cron Settings
Manual Scheduling
For custom automation, add to your crontab:
# Import orders every 15 minutes
*/15 * * * * cd /path/to/magento && bin/magento magmodules-bol:import-orders
# Export offers every hour
0 * * * * cd /path/to/magento && bin/magento magmodules-bol:export-offers
Need More Help?
Documentation:
- All Help Articles - Complete documentation overview
Support:
- Contact Support - Get help from our team