{"id":20140678,"url":"https://github.com/goffinet/cloudflare_api","last_synced_at":"2026-05-08T22:32:05.718Z","repository":{"id":116034034,"uuid":"88627276","full_name":"goffinet/cloudflare_api","owner":"goffinet","description":"A minimalist `Bash` binding of Cloudflare API https://api.cloudflare.com/.","archived":false,"fork":false,"pushed_at":"2015-10-13T21:08:19.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T23:28:34.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goffinet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-18T13:18:44.000Z","updated_at":"2017-05-23T22:35:02.000Z","dependencies_parsed_at":"2023-03-08T15:31:08.246Z","dependency_job_id":null,"html_url":"https://github.com/goffinet/cloudflare_api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/goffinet/cloudflare_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goffinet%2Fcloudflare_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goffinet%2Fcloudflare_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goffinet%2Fcloudflare_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goffinet%2Fcloudflare_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goffinet","download_url":"https://codeload.github.com/goffinet/cloudflare_api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goffinet%2Fcloudflare_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32800072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-13T21:53:10.568Z","updated_at":"2026-05-08T22:32:05.702Z","avatar_url":"https://github.com/goffinet.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Table of contents\n\n1. [Description](#description)\n1. [Author](#author)\n1. [License](#license)\n1. [Examples](#examples)\n1. [Tips](#tips)\n1. [FIXME](#fixme)\n\n## Description\n\nA minimalist `Bash` binding of Cloudflare API https://api.cloudflare.com/.\n\n## Author\n\nAnh K. Huynh.\n\n## License\n\nThe work is released under a MIT license.\n\n## Examples\n\n````\n$ export CF_KEY_FILE=./my_api_key.private\n$ export CF_EMAIL=john@example.net\n\n# List all of my domains\n$ ./cloudflare_api.sh _cf_zone_get_entries | json_pp\n\n# Get information of a domain\n$ ./cloudflare_api.sh _cf_zone_get_entry example.net | json_pp\n\n# Return the identify of a domain\n$ ./cloudflare_api.sh _cf_zone_get_entry_id example.net\n\n$ export CF_ZONE_ID=foobar # result return from the above step\n\n$ ./cloudflare_api.sh _cf_zone_dns_get_simple_list\n# Or equivalently\n# ./cloudflare_api.sh _cf_zone_dns_get_simple_list --zone_id $CF_ZONE_ID\n\n# Create an dns entry\n$ ./cloudflare_api.sh _cf_zone_dns_create_entry \\\n    --zone_id $CF_ZONE_ID \\\n    --name \"foo.example.net\" \\\n    --ttl 1 \\\n    --type CNAME \\\n    --value \"bar.example.net\"\n\n$ ./cloudflare_api.sh _cf_zone_dns_get_entry \\\n    --zone_id $CF_ZONE_ID \\\n    --name \"foo.example.net\"\n\n# Enable proxying\n$ ./cloudflare_api.sh _cf_zone_dns_update_entry \\\n    --zone_id $CF_ZONE_ID \\\n    --name \"foo.example.net\" \\\n    --proxied true\n\n# Purging cache\n$ ./cloudflare_api.sh _cf_cache_purge_all \\\n    --zone_id $CF_ZONE_ID\n\n# Purge some URIs\n$ ./cloudflare_api.sh _cf_purge_uri \\\n    --zone_id $CF_ZONE_ID \\\n    http://example.net/foo \\\n    http://example.net/bar \\\n    ...\n````\n\n## Tips\n\n1. Use `--debug true` option to see how `curl` sends request(s) to Cloudflare.\n1. If `--zone_id` option is not specified, the `CF_ZONE_ID` environment is used.\n1. Sourcing and noop would help to set up some variables like `CF_ZONE_ID`.\n   For example,\n\n        source cloudflare_api.sh : \"$@\"\n        # Now CF_ZONE_ID is exported.\n        # See details in `_cf_check` and `__cf_detect_arg`\n\n## FIXME\n\n1. Ability to specify `--entry_id` when updating / listing\n1. Not work with entry that has multiple DNS properties (`A`, `MX`, ...)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoffinet%2Fcloudflare_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoffinet%2Fcloudflare_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoffinet%2Fcloudflare_api/lists"}