managing DNS by CLI? create subdomain with IP via CLI?

hi dear Cloudflare Team, i got a question, do you guys now how to setup DNS in CLI, without to visiting the Homepage? just like gh repo create in github chatgpt shows me this command, but i couldn't found any documentation
cloudflare-dns create-subdomain example.com newsubdomain
cloudflare-dns create-subdomain example.com newsubdomain
4 Replies
Hello, I’m Allie!
The most supported CLI would probably be Terraform: https://developers.cloudflare.com/terraform
Cloudflare Docs
Cloudflare Terraform · Cloudflare Terraform docs
Configure Cloudflare using HashiCorp’s “Infrastructure as Code” tool, Terraform. With Cloudflare’s Terraform provider , you can manage the Cloudflare …
Hello, I’m Allie!
There might be third-party tools/tools you can build yourself, but this is the only one that I know of that is official
Abu Abbas đź‘‘
Abu Abbas 👑OP•8mo ago
ahh ok thanks, i need to learn terraform to use this option... sounds difficult... but i really hope there is any reliable and smart third party option,
Erisa
Erisa•8mo ago
There is also flarectl though I'm uncertain how officially its supported https://github.com/cloudflare/cloudflare-go/tree/master/cmd/flarectl
chatgpt shows me this command, but i couldn't found any documentation
ChatGPT is clearly hallicunating there, it doesn't know about a Cloudflare CLI so it made one up and was confidently wrong
Want results from more Discord servers?
Add your server