This chapter covers the core features and capabilities of Invoice Generator.
# Generate a demo invoice to see it in action
python src/invoice_generator.py --action demo --output demo_invoice.html
# Generate from your own config
python src/invoice_generator.py --config examples/invoice_data.json --output invoice.html
# Validate config without generating
python src/invoice_generator.py --config examples/invoice_data.json --action validate
# Output as JSON report
python src/invoice_generator.py --config examples/invoice_data.json --format jsonFollow this guide to get Invoice Generator up and running in your environment.
| Flag | Description |
|---|---|
--action, -a | Action: generate (default), demo, validate |
--config, -c | Path to invoice JSON config file |
--output, -o | Output file path (default: stdout) |
--format, -f | Output format: html (default) or json |
--verbose, -v | Enable debug logging |
See examples/invoice_data.json for a complete example. Key fields:
| Field | Type | Description |
|---|---|---|
invoice_number | string | Invoice ID (auto-generated if omitted) |
issue_date | string | Issue date in YYYY-MM-DD format |
due_date | string | Due date (defaults to Net 30) |
currency | string | ISO 4217 code: USD, EUR, GBP, JPY, CAD, AUD |
sender | object | Your business address and contact info |
recipient | object | Client address and contact info |
line_items | array | Items with description, quantity, unit_price, tax_rate, discount_percent |
payment_terms | string | Terms text (e.g., "Net 30") |
payment_methods | array | Accepted payment methods |
brand_color | string | Hex color for accents (default: #2563EB) |
notes | string | Additional notes for the client |
status | string | draft, sent, paid, overdue, canceled |
Get the full Invoice Generator and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.