Magento Moneybird CLI Commands
Looking for Magento Moneybird Integration: Book Invoices, Credit Memos and Customers Automatically? View the full Magento Moneybird Integration: Book Invoices, Credit Memos and Customers Automatically page to explore features, configuration options, and pricing.
The Moneybird Integration ships two console commands: one that runs the sync on demand, and one that checks whether the module is in a state where it could run at all. Both are meant for a terminal — day to day, cron does the work — and they are what you reach for when something is wrong and you want an answer in seconds rather than after the next quarter of an hour. This page explains what each one does, what it prints, and when to use it.
accounting:sync:moneybird
bin/magento accounting:sync:moneybird
Runs the queue: new invoices and credit memos are collected, and everything waiting is sent to Moneybird. It is the same service the cron job runs, so the result is identical — only the timing differs.
It prints one line per document, green for sent and red for anything else, with the platform's message on the failures:
Invoice 000000447: synced to Moneybird
Creditmemo C000000002: synced to Moneybird
Invoice 000000448: [422] Contact is invalid
Use it to push something through without waiting for cron, or to watch a failure happen with the reason in front of you.
Note that the cron job carries two guards this command does not: the Enabled setting and the schedule. A module that is switched off still syncs from the CLI. If you are debugging "nothing happens automatically", the CLI working is not proof that cron does — check the schedule under General → Cron frequency as well.
accounting:selftest:moneybird
bin/magento accounting:selftest:moneybird
Checks the environment the module runs in and prints a line per test:
- PHP version — is this PHP supported
- Extension status — is the module enabled
- Extension version — is the installed version the latest published one
- Magento version — is this Magento supported
Successes are shown as success, everything else in red with what is wrong.
Run it after an upgrade, or as the first thing when a shop behaves in a way the configuration cannot explain.
A note on scheduling
Do not add these to a system crontab. Magento's own cron runs the sync on the schedule you set under Stores → Configuration → Magmodules → Moneybird → General → Cron frequency, which is every fifteen minutes by default. Two schedulers sending the same queue is how one invoice becomes two bookings.
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 Moneybird Integration: Book Invoices, Credit Memos and Customers Automatically.