This page covers all CLI commands available in the Exact Online Integration for Magento 2. These commands are useful for testing your setup, processing a backlog of invoices, or debugging sync issues outside the admin panel. You can run them manually at any time — they use the same logic as the cron job, so what you see here is what runs automatically in the background.
Available Commands
| Command | Description |
|---|---|
accounting:sync:exact |
Sync pending invoices and credit memos to Exact Online |
accounting:selftest:exact |
Run diagnostic tests |
accounting:sync:exact
Manually triggers sync of all pending invoices and credit memos to Exact Online. This runs the same logic as the scheduled cron job — it picks up anything in the queue with status Pending or Error (under the retry limit) and attempts to sync it.
bin/magento accounting:sync:exact
When to use:
- After initial setup to verify everything syncs correctly
- To process a backlog immediately without waiting for the next cron run
- When cron is not running or has been disabled
- To debug sync issues — combine with Debug Mode enabled in the configuration
accounting:selftest:exact
Runs a set of diagnostic checks: PHP version compatibility, module enabled status, extension version, and Magento version. Use this to quickly confirm the module is in a working state.
bin/magento accounting:selftest:exact
Example output:
PHP Version: success
- PHP version meets requirements
Extension Status: success
- Module is enabled
Extension Version: success
- Running latest version (1.0.0)
Magento Version: success
- Magento version 2.4.x
When to use:
- Right after initial setup to confirm the module is correctly installed and enabled
- When sync stops working and you want a quick overview of the module state
- Before contacting support — include the output in your support request
Need More Help?
Documentation:
- All Help Articles - Complete documentation overview
Support:
- Contact Support - Get help from our team
For a complete overview of features and configuration options, see Magento 2 Exact Online integration.
