goal:wms)The goal:wms Artisan command provides direct CLI diagnostics, KPI reporting, and live database verification against goal-data-db (ExternalConectorsEnum::DB_DATA).
php artisan goal:wms {verb? : stats|kpi|test|help} {--c|company= : Company ID (defaults to 8)}
| Verb | Description |
|---|---|
stats |
Executes GetWmsDashboardStatsAction and prints JSON operational counters (pending_waves, active_tasks, items_received_today, open_discrepancies, non_dispatched_today). |
kpi |
Executes GetPickingErrorKpiAction and prints Errores de picking grouped by picker_user_id and discrepancy_type. |
test |
Runs the 4-step WHMS smoke suite against live goal-data-db tables and OPE-ALM-PRO-002 action classes. |
help |
Prints command usage. |
# Run WHMS CLI smoke test for company 8
docker compose -f docker-compose-dev.yml exec -T goal-api-dev php artisan goal:wms test --company=8
# Check live dashboard stats for company 19
docker compose -f docker-compose-dev.yml exec -T goal-api-dev php artisan goal:wms stats --company=19
# Check picking error KPIs
docker compose -f docker-compose-dev.yml exec -T goal-api-dev php artisan goal:wms kpi --company=19
# Run WHMS migrations on goal-data-db
docker compose -f docker-compose-dev.yml exec -T goal-api-dev php artisan migrate
# Sync model catalog metadata and GOAL_V2_WMS_* permissions
docker compose -f docker-compose-dev.yml exec -T goal-api-dev composer sync-permissions
# Run Pest WHMS unit/workflow suite
./vendor/bin/pest tests/Unit/Wms