CLI Commands

The module provides a CLI command to generate E-Invoices for invoices and credit memos.

einvoice:generate

php bin/magento einvoice:generate --invoice-id=123 php bin/magento einvoice:generate --creditmemo-id=456

Options:

  • --invoice-id / -i (single invoice entity ID)
  • --creditmemo-id / -c (single credit memo entity ID)
  • --invoice-ids (comma-separated list, e.g. 1,2,3)
  • --creditmemo-ids (comma-separated list, e.g. 10,11,12)

Verbose output (shows a per-entity table for bulk runs):

php bin/magento einvoice:generate --invoice-ids=1,2,3 -v

Note: IDs are entity IDs (numeric), not increment IDs. Already generated documents are skipped.

Found an issue with this documentation? Let us know