Benton Drones logo Benton Drones

API & CLI Automation Preflight

Benton Drones lead ingest MVP: Shopify-friendly public signup, owned backend data, protected admin, exports, and a clear path to production.

What this checklist is for

This page explains what we need before using command-line tools or APIs to automate Cloudflare DNS, Namecheap registrar checks, Google Workspace email verification, Shopify setup, and backend deployment.

The rule: automate read-only checks first, then carefully automate writes after records and rollback are verified.

Automation priority

PlatformAutomate first?Recommended first action
CloudflareYesRead-only API inventory of zone and DNS records.
Backend hostYesAutomated deploy/env checks once hosting is chosen.
Google WorkspacePartialAutomate DNS verification; keep admin writes manual first.
ShopifyPartialManual page/domain setup first; CLI/API later for themes/app proxy.
NamecheapRead-only firstExport current DNS/nameserver state before any cutover.

Secrets we may need

CLOUDFLARE_API_TOKEN=
CLOUDFLARE_ZONE_ID=
SHOPIFY_STORE_DOMAIN=
SHOPIFY_ADMIN_ACCESS_TOKEN=
SHOPIFY_APP_SECRET=
GOOGLE_WORKSPACE_ADMIN_EMAIL=
GOOGLE_WORKSPACE_CUSTOMER_ID=
NAMECHEAP_API_USER=
NAMECHEAP_API_KEY=
NAMECHEAP_USERNAME=
NAMECHEAP_CLIENT_IP=
BACKEND_HOST_API_TOKEN=
ADMIN_PASSWORD=
ADMIN_SESSION_SECRET=
CSRF_SECRET=

Safe first scripts to build

ScriptPurposeRisk
scripts/check_dns.pyVerify DNS records resolve as expected.Low: read-only
scripts/check_email_auth.pyVerify MX, SPF, DKIM, DMARC DNS records.Low: read-only
scripts/check_cloudflare_zone.pyUse Cloudflare API to inventory DNS records.Low if token is read-only
scripts/preflight_report.pyCreate a plain-English readiness report.Low: read-only

Do not automate yet

Definition of ready

  1. Cloudflare read-only API token exists.
  2. Cloudflare zone ID for bentondrones.com is known.
  3. Namecheap DNS and nameservers are screenshotted/exported.
  4. Google Workspace MX/SPF/DKIM/DMARC records are confirmed.
  5. Shopify A/CNAME requirements are confirmed.
  6. Backend hosting provider is selected.
  7. Production target for leads.bentondrones.com is known.
  8. Secrets storage approach is chosen.

Domain Setup Roadmap