SERVER
calpamos serve
Runs the production Uvicorn ASGI server powering the REST API, Server-Sent Events (SSE) price streams, and Swagger UI.
Command Line
calpamos serve --host 0.0.0.0 --port 8000
TUI
calpamos monitor
Launches the Bloomberg-style interactive terminal decision cockpit and real-time market monitor built with Textual and Rich. Provides an all-in-one single-screen buy/no-buy investment decision dashboard for any given LEGO set ID, featuring a high-density sub-pixel Braille spark-matrix price trajectory chart, Part-Out Value (POV) minifigure arbitrage breakdown, live connected retailer inventory, and autonomous refresh scheduler sentinels with live countdowns.
Command Line Examples
calpamos monitor 75192
calpamos monitor 10333 --country US
calpamos monitor
SYSTEM
calpamos status
Diagnostic utility verifying SQLite WAL connectivity, table sizes across all retail source tables, catalog count, and active ScrapingBee credit balances. Supports
--detailed to trigger a full fleet health audit.
Command Line Examples
calpamos status
calpamos status --detailed
calpamos status --json
AUDIT
calpamos health
Runs a comprehensive operational health check, fleet cadence matrix, daemon telemetry (
calpamos-scheduler & calpamos-api), live stock fill rates, automated integration anomaly detection (FLEET_ANOMALY_WATCHDOG), and execution audit ledger across all background sweepers. Adheres strictly to the Cyberpunk VT220 Terminal Aesthetic.
Command Line Examples
calpamos health
calpamos health --source firstcry --hours 12
calpamos health --detailed
calpamos health --json
SECURITY
calpamos keys
Manages subscriber API keys, plan entitlements (
buyer, collector, pro), revocations, and the aggregated utilization ledger.
Command Line Examples
calpamos keys create --user power_user@example.com --plan pro
calpamos keys usage
calpamos keys list
DAEMON
calpamos scheduler
Controls the autonomous background refresh loop, watchdog, and execution history. Updates buyable retail prices, catalog synchronization, and BrickLink secondary depth. Supports 5-minute stagger schedule alignment (
align / stagger) to protect ScrapingBee concurrency limits, execution audit trail queries (history / audit) with failure filtering, per-source interval tuning, setting job status (DISABLED, PAUSED, IDLE), and removing or registering scheduled entries.
Command Line Examples
calpamos scheduler status
calpamos scheduler align
calpamos scheduler history catalog_sync --limit 10
calpamos scheduler history --failed
calpamos scheduler alter borders --interval 12
calpamos scheduler alter amazon_ae --status DISABLED
calpamos scheduler remove catalog_sync
calpamos scheduler add catalog_sync --interval 24
TELEMETRY
calpamos enrichment-report
Telemetry dashboard reporting BrickLink API quota consumption (5,000/day limit), ScrapingBee proxy pool health, and liquidity tier distribution across sets.
Command Line
calpamos enrichment-report
INTELLIGENCE
calpamos demand
Executive buyer demand intelligence analyzing high-frequency user search volume from application logs, correlated with canonical catalog metadata and active 30-day market price fluctuations (increases, retail discounts, trends).
Command Line Snippet
calpamos demand
AUDIT
calpamos gaps
Audits catalog data completeness across liquidity tiers (Tiers 1–4) and individual sets, surfacing key gaps such as missing official MSRP benchmarks, missing manufacturer barcodes (EAN-13 / UPC-12), lack of active retail price signals, and missing set artwork. Automatically resolves theme names (e.g.
STARWARS → Star Wars), diagnoses non-retail sets (GWP, Promotional, Polybag) and multi-set retailer-exclusive bundles (e.g. Walmart, Costco, Target exclusives), and renders a Targeted Record Repair Guide with exact bulk and single-set CLI remediation commands.
Command Line Snippets
calpamos gaps --theme STARWARS --tier 2
calpamos gaps --tier 1 --missing msrp
calpamos gaps 71043
ON-DEMAND
calpamos scrape
Triggers an immediate live scrape for a specific LEGO set number across all retail marketplaces and BrickLink secondary depth.
Command Line
calpamos scrape 75192 --source bricklink
BULK
calpamos sweep
Runs a concurrent asynchronous sweep against a target retailer to discover newly listed sets, price drops, and stock updates.
Command Line
calpamos sweep borders --concurrency 6 --limit 200
INSPECT
calpamos inspect
Terminal inspector rendering historical price signals, store stock, and raw source records directly from SQLite without invoking the HTTP API. Supports regional country filtering (
US, AE, ALL). Automatically detects multi-variant sibling sequence numbers (e.g. 75188-1, -2, -3), renders a Rich status roster (OBSOLETE, ★ GRAIL, ACTIVE), and auto-inspects the primary active release.
Command Line Examples
calpamos inspect 76345 US
calpamos inspect 75188 --days 30
INTELLIGENCE
calpamos trend
Renders a visual price intelligence report anchored to Brickset Global US MSRP and official retail anchors. Supports multi-market country targeting (
US, AE, ALL), dynamically switching native currencies (USD for US, AED for AE), benchmarking connected retailers (LEGO Store US, Target US vs LEGO Certified Store UAE, Amazon UAE, Noon), 2x4 sub-pixel Braille curves, stepped 1/8th sparklines with flat mid-lines, Part-Out Value (POV) minifigure equity buffers, normalized distribution bars with stock/seller badges, BrickLink secondary depth, and per-retailer LAG() price delta tracking.
Command Line Examples
calpamos trend 76345 US
calpamos trend 75192 --country US
calpamos trend 76178
calpamos trend 42172 US --days 60 --width 52 --height 12
STREAMING
calpamos poll
Polls newly recorded market valuations since a given ISO timestamp, or connects directly to the live Server-Sent Events (SSE) market ticker stream.
Command Line Examples
calpamos poll --live
calpamos poll --since "2026-09-27 12:00:00"
CATALOG
calpamos themes
Explores active canonical LEGO retail themes from Brickset with release years, piece distributions, set counts, and automated Amazon search query mappings.
Command Line
calpamos themes --years 5
CATALOG
calpamos seed-catalog
Performs targeted single-set enrichment or bulk seeding of canonical catalog sets, release years, piece counts, manufacturer MSRPs, and retail barcodes (EAN-13 / UPC-12) from Brickset into
catalog_sets.
Command Line Examples
calpamos seed-catalog 71043
calpamos seed-catalog --start-year 2018 --end-year 2018
CATALOG
calpamos sync-catalog
Downloads and ingests daily gzipped database dumps from Rebrickable and BrickLink into raw staging tables.
Command Line
calpamos sync-catalog --source all
CATALOG
calpamos promote-staging
Promotes reconciled catalog sets from
staging_catalog_sets view into operational catalog_sets table.
Command Line
calpamos promote-staging --year 2026 --dry-run
PIPELINE
calpamos hydrate
Core catalog hydration pipeline. Decomposes sets into constituent minifigures via BrickLink Subsets API and scrapes 4-quadrant secondary market valuations for an entire release year.
Command Line
calpamos hydrate --year 2026 --concurrency 4
POV / ARBITRAGE
calpamos arbitrage
Audits Minifigure Part-Out Value (POV) and +EV retail arbitrage opportunities. Connects constituent figures from
set_minifigures with BrickLink 6-month historical sales averages, comparing total figure market value against live retail set prices and MSRP.
Command Line
calpamos arbitrage 75383
DEALS / FLOOR
calpamos discounts
Monitors cross-retailer discounts, all-time lows (ATL), and historical price floor proximity. Evaluates live prices against historical price distributions to verify authentic markdowns vs MSRP.
Command Line
calpamos discounts --floor-only --min-discount 20
CONTRACT SENTINEL
calpamos drift
Continuous contract verification and drift detection engine for retail scraper profiles (Calpamos Drift Sentinel Framework v3.2.0). Executes single-page non-destructive probes to validate transport connectivity, WAF perimeter bypass, structural container stability, schema key drift, semantic data yields, and catalog disambiguation.
Command Line
calpamos drift --all --report