cfcommander
cfcommander is a simple CLI tool for managing DNS records in Cloudflare. After installing via pip, you can use it with the cf command.
Installation
pip install cfcommander
Configuration
Before using the tool, configure your Cloudflare API credentials:
cf config your_email@example.com your_api_key
This saves your credentials to ~/.cfcli_config.json.
Usage
Add a DNS record
cf add example.com A home 192.0.2.1 yes 120
example.com– The zone name (your domain).A– Record type (A, CNAME, etc.).home– Subdomain (createshome.example.com).192.0.2.1– The record value (e.g., an IP address).yes– Whether the record is proxied through Cloudflare (yes/no).120– TTL (Time-To-Live in seconds).
Edit a DNS record
cf edit example.com A home 198.51.100.42 no 300
Delete a DNS record
cf del example.com A home
List all DNS records for a domain
cf list example.com
List all manageable domains
cf domains
Examples
# Configure API credentials
cf config user@example.com my_api_key
# Add an A record for home.example.com
cf add example.com A home 203.0.113.10 no 3600
# Modify an existing record
cf edit example.com A home 198.51.100.42 yes 1800
# Delete a record
cf del example.com A home
# List all DNS records for a domain
cf list example.com
# List all domains under your Cloudflare account
cf domains
Dependencies
- Python 3.6+
- Required libraries:
requests,argparse,tabulate,json,sys,os,textwrap
License
MIT License © Jakub Jim Zacek
Metadata
Release files for cfcommander 0.1.15
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 |
|---|---|---|---|---|
| cfcommander-0.1.15.tar.gz | 4.6 kB | Without provenance | Details for cfcommander-0.1.15.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cfcommander-0.1.15-py3-none-any.whl | Python 3 | none | any | Details for cfcommander-0.1.15-py3-none-any.whl |
Total release size: 10.6 kB
Release files / cfcommander-0.1.15.tar.gz
| Download URL | cfcommander-0.1.15.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4647ab889c7c0b62b5f3cd61ccfd6e9a280f126732e8c90bc2b334e290aca271
|
|
BLAKE2b-256 checksum How to use checksums |
65bdb9995a049eb0d474a11532a2cbbee221414ab9d8ff352a6e8a861dea555c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.12
|
Release files / cfcommander-0.1.15-py3-none-any.whl
| Download URL | cfcommander-0.1.15-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b9391e808b8d2d3410ec0954092de65283969d6537088b2d495b3b554b054cb
|
|
BLAKE2b-256 checksum How to use checksums |
aeee6246b52d80fca7de03c28cfdbbb2c8e9737b3dab86dffffe69a67540884f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.12
|
Security for cfcommander 0.1.15
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.