{"id":50999660,"url":"https://github.com/btafoya/cfdns","last_synced_at":"2026-06-20T13:03:51.011Z","repository":{"id":355952770,"uuid":"1230385410","full_name":"btafoya/cfdns","owner":"btafoya","description":"Cloudflare DNS management CLI — create, update, delete, and list DNS records from the terminal","archived":false,"fork":false,"pushed_at":"2026-05-06T01:00:49.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-23T14:35:09.326Z","etag":null,"topics":["automation","cli","cloudflare","cloudflare-dns","devops","dns","dns-management","golang"],"latest_commit_sha":null,"homepage":"https://briantafoya.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/btafoya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-06T00:22:43.000Z","updated_at":"2026-05-17T00:23:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/btafoya/cfdns","commit_stats":null,"previous_names":["btafoya/cfdns"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/btafoya/cfdns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btafoya%2Fcfdns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btafoya%2Fcfdns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btafoya%2Fcfdns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btafoya%2Fcfdns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/btafoya","download_url":"https://codeload.github.com/btafoya/cfdns/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btafoya%2Fcfdns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34570543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","cli","cloudflare","cloudflare-dns","devops","dns","dns-management","golang"],"created_at":"2026-06-20T13:03:50.351Z","updated_at":"2026-06-20T13:03:51.004Z","avatar_url":"https://github.com/btafoya.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cfdns\n\n[![Go Version](https://img.shields.io/github/go-mod/go-version/btafoya/cfdns?style=flat)](https://golang.org)\n[![License](https://img.shields.io/github/license/btafoya/cfdns?style=flat)](LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/github.com/btafoya/cfdns?style=flat)](https://goreportcard.com/report/github.com/btafoya/cfdns)\n[![GitHub Release](https://img.shields.io/github/v/release/btafoya/cfdns?style=flat)](https://github.com/btafoya/cfdns/releases)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/btafoya/cfdns/build.yml?style=flat)](https://github.com/btafoya/cfdns/actions)\n[![Stars](https://img.shields.io/github/stars/btafoya/cfdns?style=flat)](https://github.com/btafoya/cfdns/stargazers)\n[![Forks](https://img.shields.io/github/forks/btafoya/cfdns?style=flat)](https://github.com/btafoya/cfdns/network/members)\n\nA fast, simple CLI for managing Cloudflare DNS records. Create, update, delete, and list records from your terminal — with JSON output for automation pipelines.\n\n---\n\n## Features\n\n- Create, update, delete, and list DNS records\n- Auto-detects A vs AAAA from IPv4/IPv6 input\n- Smart zone detection (handles `example.co.uk`, `sub.sub.example.com`, etc.)\n- Supports A, AAAA, CNAME, and TXT record types\n- JSON output mode for scripting and automation\n- `--force` flag for non-interactive use in CI/CD\n- Confirms before destructive operations (unless `--force`)\n- Structured exit codes for reliable scripting\n\n---\n\n## Install\n\nDownload the latest release from [GitHub Releases](https://github.com/btafoya/cfdns/releases/latest).\n\n### Linux — apt (Debian/Ubuntu)\n\n```bash\nwget https://github.com/btafoya/cfdns/releases/latest/download/cfdns_\u003cversion\u003e_amd64.deb\nsudo dpkg -i cfdns_\u003cversion\u003e_amd64.deb\n```\n\n### Linux — rpm (Fedora/RHEL/CentOS)\n\n```bash\nsudo rpm -i https://github.com/btafoya/cfdns/releases/latest/download/cfdns-\u003cversion\u003e-1.x86_64.rpm\n```\n\n### Linux — AppImage\n\n```bash\nwget https://github.com/btafoya/cfdns/releases/latest/download/cfdns-\u003cversion\u003e-x86_64.AppImage\nchmod +x cfdns-\u003cversion\u003e-x86_64.AppImage\n./cfdns-\u003cversion\u003e-x86_64.AppImage\n```\n\n### macOS\n\n```bash\n# Apple Silicon (M1/M2/M3)\ncurl -L https://github.com/btafoya/cfdns/releases/latest/download/cfdns-\u003cversion\u003e-darwin-arm64.tar.gz | tar -xz\nsudo mv cfdns-darwin-arm64 /usr/local/bin/cfdns\n\n# Intel\ncurl -L https://github.com/btafoya/cfdns/releases/latest/download/cfdns-\u003cversion\u003e-darwin-amd64.tar.gz | tar -xz\nsudo mv cfdns-darwin-amd64 /usr/local/bin/cfdns\n```\n\n### Windows\n\nDownload `cfdns-\u003cversion\u003e-windows-amd64.zip` from [releases](https://github.com/btafoya/cfdns/releases/latest), extract, and add the directory to your `PATH`.\n\n### go install\n\n```bash\ngo install github.com/btafoya/cfdns@latest\n```\n\nMake sure `$GOPATH/bin` is in your `$PATH`:\n\n```bash\nexport PATH=\"$(go env GOPATH)/bin:$PATH\"\n```\n\n### Build from source\n\n```bash\ngit clone https://github.com/btafoya/cfdns.git\ncd cfdns\ngo build -o cfdns\n```\n\n---\n\n## Setup\n\nExport your Cloudflare API token:\n\n```bash\nexport CLOUDFLARE_API_TOKEN=your_token_here\n```\n\nThe token needs **Zone:DNS:Edit** permissions for the target zone.\n\n---\n\n## Usage\n\n```\ncfdns \u003ccommand\u003e [flags] [args]\n```\n\n### Commands\n\n| Command | Description |\n|---------|-------------|\n| `create \u003chostname\u003e \u003ccontent\u003e` | Create a DNS record |\n| `update \u003chostname\u003e \u003ccontent\u003e` | Update an existing record |\n| `delete \u003chostname\u003e` | Delete a record |\n| `list \u003cdomain\u003e` | List all records for a domain |\n\n### Global Flags\n\n| Flag | Default | Description |\n|------|---------|-------------|\n| `--type` | `A` | Record type: A, AAAA, CNAME, TXT |\n| `--ttl` | `1` | TTL in seconds (1 = auto) |\n| `--proxied` | `false` | Enable Cloudflare proxy (orange cloud) |\n| `--force` | `false` | Skip confirmation prompts |\n| `--json` | `false` | Output JSON instead of human-readable text |\n\n---\n\n## Examples\n\n### Create a record\n\n```bash\ncfdns create test.example.com 192.168.1.1\n# Created: test.example.com -\u003e 192.168.1.1\n```\n\n### Auto-detect IPv6\n\n```bash\ncfdns create test.example.com 2001:db8::1\n# Creates AAAA record automatically\n```\n\n### Create a CNAME\n\n```bash\ncfdns create www.example.com example.com --type CNAME\n```\n\n### List all records\n\n```bash\ncfdns list example.com\n# A      test.example.com    192.168.1.1\n# CNAME  www.example.com     example.com\n```\n\n### Delete a record\n\n```bash\ncfdns delete test.example.com\n# Delete A test.example.com -\u003e 192.168.1.1? (y/N):\n```\n\n### Force delete (no prompt)\n\n```bash\ncfdns delete test.example.com --force\n```\n\n---\n\n## Exit Codes\n\n| Code | Meaning |\n|------|---------|\n| `0` | Success |\n| `1` | General error |\n| `2` | Invalid input |\n| `3` | API error |\n| `4` | No change needed |\n\n---\n\n## Contributing\n\nContributions are welcome! Please open an issue before submitting a PR for significant changes.\n\n1. Fork the repo\n2. Create a feature branch: `git checkout -b feature/my-feature`\n3. Commit your changes\n4. Push and open a Pull Request\n\n---\n\n## Author\n\nBuilt by [Brian Tafoya](https://briantafoya.com)\n\n---\n\n## License\n\n[MIT](LICENSE) — © Brian Tafoya\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtafoya%2Fcfdns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbtafoya%2Fcfdns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtafoya%2Fcfdns/lists"}