Engine V2 - reprice_v2.php - Cross-platform (Windows/Linux/macOS)
Engine V2: PrepareData (cached 24h) + Reprice (DSL always fresh)
Loads product data, competition, linked products. Cached 24h.
Evaluates rules on cached data. Always uses fresh rules.
Optionally saves the calculated price to DB.
php ./commands/... format. Works on Windows, Linux, macOS.
Reprice a single product by ID. Ideal for testing and debugging.
Reprice multiple products from a file. One product ID per line.
Generate CLI commands for reprice_v2.php
| Parameter | Type | Description |
|---|---|---|
| --domain= | Required | Domain to process (e.g., parfumsetmoi.fr) |
| --id= | Optional* | Single product ID to reprice |
| --idlist= | Optional* | Path to file with product IDs (1 ID per line) |
| --strategy= | Optional | Strategy ID. Auto-detects if not provided |
| --verbose / -v | Optional | Enable verbose output |
| --debug | Optional | Enable detailed debug output |
| --force-data | Optional | Force refresh cached data (bypass 24h cache) |
| --save | Optional | Save calculated prices to database |
| --help / -h | Optional | Show help message |
* At least one of --id or --idlist is required.
| Endpoint | Purpose |
|---|---|
| /api/go_price_v2.php | Engine V2 API - used by GUI (data cached 24h, DSL always fresh) |
| /api/dsl-variables-usage.php | Get list of DSL variables used in rules/guardrails |
Reprice entire domain or single product and publish to RabbitMQ queues based on strategy routes.
| Parameter | Type | Description |
|---|---|---|
| --domain= | Required | Domain to process (e.g., parfumsetmoi.fr) |
| --strategy= | Optional | Strategy ID (routes determined by strategy_pricing_route_map) |
| --id= | Optional | Single product ID (if omitted, processes entire domain) |
| --save | Optional | Save to RabbitMQ + DB (without this, only preview) |
| --limit= | Optional | Limit number of products to process |
| --verbose / -v | Optional | Enable verbose output |
strategy_pricing_route_map table.
Strategy 19 → heliostest + xml routes.
The script publishes to environment-aware queues based on strategy routes: