CLI Reference
The tubesentry CLI provides commands for running audits, generating synthetic test data, authenticating Pro licenses, and starting the MCP server.
Commands
tubesentry demo
Generates synthetic Google Ads placement data and runs an instant diagnostic pass.
bash
tubesentry demo [OPTIONS]| Option | Default | Description |
|---|---|---|
--out-dir, -o | ./demo_youtube | Directory to save the generated synthetic CSV |
--rows, -n | 25000 | Number of placement rows to generate |
--lang, -l | de | Formats data with localized headers (en or de) |
tubesentry audit
Audits a real Google Ads or DV360 placement CSV report.
bash
tubesentry audit <report_csv> [OPTIONS]| Option | Default | Description |
|---|---|---|
--lang, -l | de,en | Comma-separated target languages for geotargeting validation |
--cpa | None | Target CPA to flag performance sinkholes |
--key, -k | None | TubeSentry Pro license key (or set TUBESENTRY_API_KEY) |
--out-exclusions | None | Path to export reactive Google Ads Editor exclusions CSV (Pro) |
--out-65k | None | Path to export full 65,000-channel (or 250k MCC) shield CSV (Pro) |
--out-inclusions | None | Path to export verified On-Target positive inclusion whitelist CSV (Pro) |
--exclusion-mode | standalone | standalone (20k pasteable chunks, 65k cap) or mcc (250k shared cap) |
--html | None | Path to export interactive white-label HTML audit deck (Pro) |
--ad-url | None | YouTube ad video URL to profile targeting fit & score sampled videos |
--ad-text | None | Ad creative brief or copy to profile ICP intent |
tubesentry export
Exports ready-to-run automation scripts and warehouse SQL templates:
bash
# Export copy-paste Google Ads placement exclusion script
tubesentry export script --report where_ads_showed.csv --out cleanup.js
# Export Dec 1, 2026 Demand Gen Display opt-out & Video Enhancements audit script
tubesentry export demand-gen-audit --out demand_gen_dec2026_audit.js
# Export Ads Data Hub (ADH) 3-table UNION ALL SQL for GroupM viewability, AVOC & audible watchtime
tubesentry export adh --out tubesentry_adh_quality.sql --days 30
# Export BigQuery Data Transfer Service (DTS) SQL model
tubesentry export bigquery --dataset google_ads_export --out tubesentry_bq.sqltubesentry mcp
Launches the FastMCP stdio server.
bash
tubesentry mcptubesentry auth
Activates TubeSentry Pro using a Polar.sh license key and downloaded platform wheel.
bash
tubesentry auth --key tube_-XXXX-XXXX-XXXX --wheel path/to/tubesentry_pro-*.whl