cftui
Manage Cloudflare DNS records from your terminal.
cftui = Cloudflare TUI
- GitHub → github.com/Marshmellond/cftui
- PyPI → pypi.org/project/cftui
Features
- Browse, add, edit, and delete DNS records
- Supports A, AAAA, CNAME, MX, TXT, NS, SRV, CAA record types
- Toggle Cloudflare proxy (orange cloud) on/off
- Built-in settings screen — no manual config file editing required
- Cross-platform: Windows, macOS, Linux
- Configurable via environment variables or TOML file
Installation
pipx
pipx install cftui
uv
uv tool install cftui
pip
pip install cftui
Run without installing
uvx cftui
Usage
cftui
Key bindings
| Key | Action |
|---|---|
Ctrl+S |
Open settings |
Ctrl+R |
Refresh records |
a |
Add a new record |
Enter |
Edit selected record |
d |
Delete selected record |
Ctrl+C / Ctrl+Q |
Quit |
Configuration
On first launch, cftui creates a config file at:
| Platform | Path |
|---|---|
| Windows | %APPDATA%\cftui\config.toml |
| macOS | ~/Library/Application Support/cftui/config.toml |
| Linux | ~/.config/cftui/config.toml |
You can configure everything from the built-in settings screen (Ctrl+S), or edit the file manually.
config.toml
# Cloudflare API Token
# Create at: https://dash.cloudflare.com/profile/api-tokens
# Permission: Zone · DNS · Edit
api_token = "your_token_here"
# Zone identifier (choose ONE)
zone_name = "example.com"
zone_id = ""
Environment Variables
All config values can also be set via environment variables:
| Variable | Equivalent |
|---|---|
CFD_API_TOKEN |
api_token |
CFD_ZONE_NAME |
zone_name |
CFD_ZONE_ID |
zone_id |
API Token
Create a Cloudflare API token at dash.cloudflare.com/profile/api-tokens.
Required permission: Zone · DNS · Edit
Zone
Pick one:
- Zone Name — your domain, e.g.
example.com - Zone ID — found on the Cloudflare dashboard overview page
Development
git clone https://github.com/Marshmellond/cftui.git
cd cftui
uv sync
uv run cftui
Python 3.11+ required.
License
Metadata
Release files for cftui 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cftui-0.1.0.tar.gz | 134.4 kB | Without provenance | Details for cftui-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cftui-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for cftui-0.1.0-py3-none-any.whl |
Total release size: 146.6 kB
Release files / cftui-0.1.0.tar.gz
| Download URL | cftui-0.1.0.tar.gz |
|---|---|
| Size | 134.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b25e5c58083eafdb86baadc89d3bad766b470b67e2b22be976dee1a7f48b39b9
|
|
BLAKE2b-256 checksum How to use checksums |
254fe676ec753a78d14d5855a1abcb37e8ed771edbedf7a4c570b2c519d2540b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / cftui-0.1.0-py3-none-any.whl
| Download URL | cftui-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21cdcce59960bd532a54674c76f193ac27876732abbfd8ab9948789a3488d80b
|
|
BLAKE2b-256 checksum How to use checksums |
8939f07a1cb39c6ac127e80fc05f16f20cbd8cb04ee06b81f9a34e51f4f2f528
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for cftui 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.