Magento 2 CLI Commands for Yuki Connection
Looking for Magento 2 Yuki accounting integration? View the full Magento 2 Yuki accounting integration page to explore features, configuration options, and pricing.
This page covers all CLI commands available in the Yuki Connection 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:yuki |
Sync pending invoices and credit memos to Yuki |
accounting:selftest:yuki |
Run diagnostic tests |
accounting:sync:yuki
Manually triggers sync of all pending invoices and credit memos to Yuki. 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:yuki
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:yuki
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:yuki
Example output:
PHP Version: success
- PHP version meets requirements
Extension Status: success
- Module is enabled
Extension Version: success
- Running latest version (3.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 Yuki accounting integration.