Skip to content

Command Index

Quick reference guide for all 115 console commands organized by category.


What are you looking for? Command Category
Sync providers Sync & Import Commands
Calculate billing Totals Calculation Commands
Run scheduled tasks Cron Job Commands
Manage data Data Management Commands
Administrative tasks Administrative Commands

Commands by Category

Sync & Import Commands

Purpose: Import data from external providers

Command Description Dispatches MessageBus
sync:manager CRITICAL - Master sync orchestrator (runs every 5 min)
routit:cdr:sync Routit CDR sync orchestration
yielder:sync Yielder/Odido sync
odido:handle:queue Process Odido queue
vodafone:import Vodafone data import
kpn:sp16:sync KPN SP16 sync
kpn:een:sync KPN EEN sync
kpn:grip:sync KPN GRIP sync
tmobile:calvi:sync T-Mobile Calvi sync
telfort:cdr:scrape Telfort CDR scraping
telfort:subscription:scrape Telfort subscription scraping
calvi:scrape:invoice Scrape Calvi invoice amounts -
grexx:sync Grexx order sync
irma:scrape IRMA data scraping

Key Command:

# Master orchestrator - runs every 5 minutes
php bin/console sync:manager

See: Master Sync Workflow →


Totals Calculation Commands

Purpose: Calculate billing totals and generate insights

Command Description Dispatches MessageBus
totals:new Calculate totals (main command)
totals:rateplan Calculate totals with rate plan logic
totals:subscription Calculate per-subscription totals
totals:billinginsight Calculate for billing insights
totals:subdestination Calculate per subdestination -
totals:backup Backup totals to historical table -
totals:sp16:product-specs Calculate KPN SP16 product totals
calculate-totals:calvi-partners Calculate Calvi partner totals (18th monthly)
calculate:totals:partner Calculate partner-level totals -
calculate:usage:cost Calculate optimal usage combinations -
calculation:import Import calculations from API

Key Commands:

# Manual totals recalculation
php bin/console totals:new --customer=123 --cycle=2025-01-01

# Partner totals (runs 18th of month)
php bin/console calculate-totals:calvi-partners 2025-01-01

See: Totals Calculation →


Cron Job Commands

Purpose: Scheduled automated tasks

Command Schedule Description
sync:manager */5 * * * * CRITICAL - Master sync (every 5 min)
odido:handle:queue * * * * * Process Yielder/Odido queue (every minute)
routit:cdr:sync Daily Routit CDR sync
yielder:sync Daily Yielder sync
kpn:sp16:sync Daily KPN SP16 sync
calculate-totals:calvi-partners 0 0 18 * * Calvi partner totals (18th monthly)
sync:email:send Hourly Send sync notification emails
alert:emails Daily Send alert emails
cleanup:old:data Weekly Clean up old data
archive:invoices Monthly Archive old invoices

Cron Configuration:

# /etc/cron.d/expensis
*/5 * * * * php /var/www/expensis/bin/console sync:manager
* * * * * php /var/www/expensis/bin/console odido:handle:queue
0 0 18 * * php /var/www/expensis/bin/console calculate-totals:calvi-partners

See: Dependencies →


Data Management Commands

Purpose: Import, export, and manage data

Command Description Use Case
import:cdr Import CDRs from file Manual CDR import
import:subscriptions Import subscription data Bulk subscription updates
import:devices Import device data Device management
export:customer:data Export customer data to Excel Customer reports
generate:invoice:pdf Generate invoice PDFs Invoice generation
fetch:kpn:invoice:pdf Fetch KPN invoice PDFs KPN billing
archive:invoices Archive old invoices Data cleanup
cleanup:old:data Remove old records Database maintenance

Device & Subscription Management

Purpose: Manage devices, subscriptions, and SIM cards

Command Description
adjust:active:devices Adjust device active status based on Routit orders
adjust:numbers Adjust phone numbers
simcards:check:status Check SIM card activation status
set:portation:date Set number portation dates
update:device:info Update device information
sync:device:status Sync device status with providers

Reporting Commands

Purpose: Generate reports and analytics

Command Description
generate:customer:report Generate customer usage report
generate:partner:report Generate partner billing report
fill:reports Fill report data
export:billing:data Export billing data

Administrative Commands

Purpose: System administration and maintenance

Command Description
user:create Create new user account
user:update:role Update user role
customer:create Create new customer
customer:update Update customer data
update:cost:center Update cost center data
update:parent:order Update parent order relationships
change:calvi:passwords Change Calvi portal passwords
calvi-password:encrypt-passwords Encrypt Calvi passwords
calvi-password:decrypt-password Decrypt Calvi password

Testing & Debug Commands

Purpose: Testing and debugging

Command Description
test:sync Test sync process
test:totals Test totals calculation
check:grexx:orders Check Grexx order status
check:identical:cdr Check for duplicate CDRs
verify:automation Run automation verification tests

Commands by Frequency

Run Every Minute

  • odido:handle:queue - Process Yielder queue

Run Every 5 Minutes

  • sync:manager - CRITICAL Master orchestrator

Run Hourly

  • sync:email:send - Send notifications

Run Daily

  • Provider syncs (KPN, Vodafone, T-Mobile, etc.)
  • alert:emails - Alert notifications
  • cleanup:old:data - Data cleanup

Run Monthly

  • calculate-totals:calvi-partners - Partner totals (18th)
  • archive:invoices - Invoice archiving

Run Manually

  • Totals recalculation
  • Data exports
  • Administrative tasks
  • Testing commands

Critical Commands

If These Stop, Automation Breaks

1. sync:manager

  • Schedule: */5 * * * * (every 5 minutes)
  • Impact: ALL automated provider syncs stop
  • Dispatches: SyncProfileCommand for every active profile
  • See: Master Sync →

2. odido:handle:queue

  • Schedule: * * * * * (every minute)
  • Impact: Yielder/Odido SIM card operations stop
  • Processes: Activation, modification, cancellation queue

Usage Examples

Manual Sync for Customer

# Force immediate sync
php bin/console sync:manager --customer=123 --force

Recalculate Totals

# Specific customer and cycle
php bin/console totals:new --customer=123 --cycle=2025-01-01

# All customers for cycle
php bin/console totals:new --cycle=2025-01-01 --all

Export Customer Data

# Generate Excel report
php bin/console export:customer:data --customer=123 --cycle=2025-01-01

Check Sync Status

# View sync tasks
php bin/console sync:status --customer=123

# View last sync results
php bin/console sync:history --customer=123 --limit=10

Debug Sync Issues

# Run with verbose output
php bin/console sync:manager -vvv

# Test specific provider
php bin/console test:sync --provider=kpn_sp16 --customer=123

Finding Commands

List All Commands

php bin/console list

Search for Command

php bin/console list | grep sync
php bin/console list | grep totals

Get Command Help

php bin/console sync:manager --help
php bin/console totals:new --help

Command Statistics

Category Count % of Total
Sync & Import 25 22%
Totals Calculation 15 13%
Device Management 12 10%
Administrative 20 17%
Data Management 18 16%
Reporting 10 9%
Testing & Debug 8 7%
Other 7 6%
Total 115 100%