-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
awaiting reporter responseNeeds clarification or followup from OPNeeds clarification or followup from OP
Description
Problem
Currently, there's no way to add custom domains to Cloudflare Pages or Workers projects via the wrangler CLI. Users must go through the web dashboard to configure custom domains.
Proposed Solution
Add domain management commands to wrangler:
# For Pages
wrangler pages domain add <domain> --project-name=<project>
wrangler pages domain list --project-name=<project>
wrangler pages domain remove <domain> --project-name=<project>
# For Workers
wrangler domain add <domain>
wrangler domain list
wrangler domain remove <domain>Use Case
This would enable full CI/CD automation without requiring manual dashboard configuration. Developers could manage everything from their deployment scripts.
Example Workflow
# Build and deploy
npm run build
wrangler pages deploy dist --project-name=myapp
# Add custom domain programmatically
wrangler pages domain add myapp.com --project-name=myapp
wrangler pages domain add www.myapp.com --project-name=myappBenefits
- Complete infrastructure-as-code capability
- Faster deployment workflows
- Better CI/CD integration
- Parity with other cloud providers (Vercel, Netlify, etc.)
This feature would significantly improve the developer experience for teams using wrangler in automated pipelines.
Metadata
Metadata
Assignees
Labels
awaiting reporter responseNeeds clarification or followup from OPNeeds clarification or followup from OP
Type
Projects
Status
Untriaged