Config
Non-secret configuration follows a fixed precedence: CLI flags > shell env > agent-ads.config.json. Secrets always use the credential store or shell env.
agent-ads.config.json
Place this file in your project root. The CLI looks for it in the current directory and walks up to the filesystem root.
Inspect config
Show resolved config path
bash
agent-ads meta config pathValidate
Check config file syntax
bash
agent-ads meta config validateOutput Flags
Shared output flags work the same way across all engines.
Format
JSON (default), JSONL, or CSV
bash
agent-ads meta insights query --format csv --output report.csvPretty print
Human-readable JSON
bash
agent-ads meta insights query --prettyEnvelope
Wrap response with metadata and paging
bash
agent-ads meta insights query --envelopeDoctor Commands
Each engine has a doctor command that verifies your setup. Add --api to also test API connectivity.
Meta
Verify Meta setup
bash
agent-ads meta doctor --apiGoogle
Verify Google setup
bash
agent-ads google doctor --apiTikTok
Verify TikTok setup
bash
agent-ads tiktok doctor --apiPinterest
Verify Pinterest setup
bash
agent-ads pinterest doctor --apiLinkedIn
Verify LinkedIn setup
bash
agent-ads linkedin doctor --api