Skip to main content

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

Metadata

Release files for cf-dns-edit 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cf-dns-edit 0.2.5
File Size Uploaded
cf_dns_edit-0.2.5.tar.gz 192.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cf-dns-edit 0.2.5
File Interpreter ABI Platform
cf_dns_edit-0.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 217.2 kB

Release files / cf_dns_edit-0.2.5.tar.gz

Download URL cf_dns_edit-0.2.5.tar.gz
Size 192.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ae53d4873c9d994372eaf1dae225ccd1e8279adeda95710472a8c6f1576181ab
BLAKE2b-256 checksum
How to use checksums
ba9347732de06828be9ef11c978ac84c2368e5ed5131bac882b6c891ce7b3b36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.16

Release files / cf_dns_edit-0.2.5-py3-none-any.whl

Download URL cf_dns_edit-0.2.5-py3-none-any.whl
Size 25.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
120f29e835ca5ea3b9eb54f384a87b8cc261ae32bb1b85ef53fc6156675d663a
BLAKE2b-256 checksum
How to use checksums
f016e95d0d00b632f29676636a9078e90d0d2f25bc688a5b673524947bf80e9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.16

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 release files

0.2.4

1 release file

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page