Skip to main content

TUI to edit DNS records for cloudflare domains

Project description

cf-dns

Simple TUI to edit DNS records for cloudflare managed domains

Installation

Using pip:

pip install cf-dns-edit

Using uv:

uv tool install cf-dns-edit

Usage

After installing, simply run

cf-dns-edit

Setup

To get your API token, head over to this page.

In "API Tokens" click "Create Token".

alt text

Scroll down and click "Create Custom Token".

alt text

Give it a name and then in "Permissions" add the following:

alt text

  • Zone.DNS.Read
  • Zone.DNS.Write
  • Zone.Zone.Read

Scroll down to "Continue to summary" and click it:

alt text

Then click "Create Token":

alt text

Copy the token.

Launch the program and then just paste in your key!

FAQ

Q: I am unable to paste in my key!

A: Set an environment variable named CLOUDFLARE_API_TOKEN to your key and rerun it

How to set the environment variable:

  • Windows: set CLOUDFLARE_API_TOKEN=token
  • Linux/MacOS: export CLOUDFLARE_API_TOKEN=token

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cf_dns_edit-0.2.5.tar.gz (192.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cf_dns_edit-0.2.5-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file cf_dns_edit-0.2.5.tar.gz.

File metadata

  • Download URL: cf_dns_edit-0.2.5.tar.gz
  • Upload date:
  • Size: 192.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.16

File hashes

Hashes for cf_dns_edit-0.2.5.tar.gz
Algorithm Hash digest
SHA256 ae53d4873c9d994372eaf1dae225ccd1e8279adeda95710472a8c6f1576181ab
MD5 026842ebe12ebf4a5314d813cfcf9125
BLAKE2b-256 ba9347732de06828be9ef11c978ac84c2368e5ed5131bac882b6c891ce7b3b36

See more details on using hashes here.

File details

Details for the file cf_dns_edit-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for cf_dns_edit-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 120f29e835ca5ea3b9eb54f384a87b8cc261ae32bb1b85ef53fc6156675d663a
MD5 798b21637c762c3aa8d7585079fc0f7d
BLAKE2b-256 f016e95d0d00b632f29676636a9078e90d0d2f25bc688a5b673524947bf80e9b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page