{"id":21682334,"url":"https://github.com/beevik/cf","last_synced_at":"2025-04-12T06:52:59.224Z","repository":{"id":70447222,"uuid":"152898789","full_name":"beevik/cf","owner":"beevik","description":"Command line tool to view and modify cloudflare DNS records","archived":false,"fork":false,"pushed_at":"2024-11-30T23:31:22.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T06:52:52.947Z","etag":null,"topics":["cloudflare","dns"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beevik.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}},"created_at":"2018-10-13T17:48:52.000Z","updated_at":"2024-11-30T23:31:26.000Z","dependencies_parsed_at":"2024-06-21T17:48:15.114Z","dependency_job_id":"d2bb86da-6e60-4e32-861c-4667bd57c1ab","html_url":"https://github.com/beevik/cf","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevik%2Fcf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevik%2Fcf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevik%2Fcf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevik%2Fcf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beevik","download_url":"https://codeload.github.com/beevik/cf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530594,"owners_count":21119595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cloudflare","dns"],"created_at":"2024-11-25T15:35:42.614Z","updated_at":"2025-04-12T06:52:59.203Z","avatar_url":"https://github.com/beevik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"cf\n==\n\ncf is a command line tool that allows you to view and manipulate DNS records\nstored in your [Cloudflare](https://www.cloudflare.com) account.\n\n## Interactive mode\n\nIf you launch the `cf` tool without command line arguments, it will run in\ninteractive mode. In interactive mode, you will be shown a `cf\u003e` prompt, where\nyou can type in commands. For example, type `help`:\n\n```text\ncf\u003e help\nPrimary commands:\n    list    List all DNS records\n    ip4     Add or modify an IPv4 Address (type A) record\n    ip6     Add or modify an IPv6 Address (type AAAA) record\n    cname   Add or modify a CNAME record\n    txt     Add or modify a text (type TXT) record\n    add     Add a DNS record\n    delete  Delete DNS record(s)\n    zone    Set active zone\n    quit    Quit the application\n\n```\n\nTo obtain further help on a specific command, type `help \u003ccmd\u003e`.  For\nexample:\n\n```text\ncf\u003e help ip4\nUsage: ip4 \u003cname\u003e \u003caddress\u003e\nDescription:\n   Add or modify an IPv4 address (type A) DNS record in the currently active\n   zone.\n\nShortcut: ip\n```\n\nThe following example updates the address record for `foo.example.com` so that\nit points to `10.0.0.1`:\n\n```text\ncf\u003e ip4 foo.example.com 10.0.0.1\nDNS record updated.\n```\n\nSome commands require Cloudflare credentials, which you will be prompted for\nwhen you issue the command.  All future commands you enter during the same\ninteractive session will rely on these credentials, so you only need to enter\nthem once. If you prefer to provide the credentials through environment\nvariables, that is also possible.  See the next section for details.\n\n## Non-interactive mode\n\nYou can also use the tool in non-interactive mode by passing all command\nrequests directly on the command line. For example, type `cf help` from\nthe shell:\n\n```text\n$ cf help\nPrimary commands:\n    list    List all DNS records\n    ip4     Add or modify an IPv4 Address (type A) record\n    ip6     Add or modify an IPv6 Address (type AAAA) record\n    cname   Add or modify a CNAME record\n    txt     Add or modify a text (type TXT) record\n    add     Add a DNS record\n    delete  Delete DNS record(s)\n    zone    Set active zone\n    quit    Quit the application\n```\n\nSince cloudflare credentials cannot be requested in non-interactive mode, you\nwill need to provide them through the following environment variables:\n\n| Variable         | Description                           |\n|------------------|---------------------------------------|\n| CLOUDFLARE_EMAIL | Your cloudflare account email address |\n| CLOUDFLARE_KEY   | Your cloudflare API key               |\n| CLOUDFLARE_ZONE  | Your cloudflare zone name             |\n\n\nOn Mac and Linux, this can be done in the bash shell as in the following\nexample:\n\n```text\n$ CLOUDFLARE_EMAIL=me@email.com \\\nCLOUDFLARE_KEY=d299c6cdc6464f35a0f45fc789eb12a2 \\\nCLOUDFLARE_ZONE=example.com \\\ncf list\n```\n\nOn Windows, you can do this:\n\n```text\nC:\\\u003eset CLOUDFLARE_EMAIL=me@email.com\nC:\\\u003eset CLOUDFLARE_KEY=d299c6cdc6464f35a0f45fc789eb12a2\nC:\\\u003eset CLOUDFLARE_ZONE=example.com\nC:\\\u003ecf list\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeevik%2Fcf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeevik%2Fcf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeevik%2Fcf/lists"}