Simple CLI tool to interact with the Cloudflare APIs.
Project description
cloudben
Usage:
$ cloudben [OPTIONS] COMMAND [ARGS]...
Options:
--install-completion
: Install completion for the current shell.--show-completion
: Show completion for the current shell, to copy it or customize the installation.--help
: Show this message and exit.
Commands:
create-record
: Create a DNS records for a specific zone.delete-record
: Delete a DNS record given a record id...delete-records
: Delete all the DNS records that match the...export-records
: Export DNS records for a specific zone.get-records
: Get all the DNS records for a specific...
cloudben create-record
Create a DNS records for a specific zone. Example usage: cloudben create-record $zoneid "cloudben" "my-azure-alb.azure.com" CNAME
Usage:
$ cloudben create-record [OPTIONS] ZONE_ID NAME CONTENT TYPE:{A|CNAME|AAAA|TXT|MX}
Arguments:
ZONE_ID
: your zone id [required]NAME
: name of the Cloudflare record [required]CONTENT
: value of the Cloudflare record (what the record will resolve to) [required]TYPE:{A|CNAME|AAAA|TXT|MX}
: type of the Cloudflare record [required]
Options:
--priority INTEGER RANGE
: priority of the TXT record [default: 0; 0<=x<=65535]--json / --no-json
: will output valid JSON. It can we useful when using this command in your script. Vanity logging will be disabled [default: no-json]--help
: Show this message and exit.
cloudben delete-record
Delete a DNS record given a record id Example usage: cloudben delete-record $zoneid "<record_id>"
Usage:
$ cloudben delete-record [OPTIONS] ZONE_ID RECORD_ID
Arguments:
ZONE_ID
: your zone id [required]RECORD_ID
: id of the record to delete [required]
Options:
--force
: Do not ask for confirmation when deleting.--help
: Show this message and exit.
cloudben delete-records
Delete all the DNS records that match the provided queries. If both --name_query and --content_query are provided the records will match both the criterias (it's an AND not an OR)
Example usage: cloudben delete-record $zoneid "<record_id>" --name_query "benny"
Usage:
$ cloudben delete-records [OPTIONS] ZONE_ID
Arguments:
ZONE_ID
: your zone id [required]
Options:
--name-query TEXT
: Text to be contained in the record's name.--content-query TEXT
: Text to be contained in the record's value.--force
: Do not ask for confirmation when deleting.--help
: Show this message and exit.
cloudben export-records
Export DNS records for a specific zone. Example usage: python cloudflare_cli.py export_dns_records --zone_id ZONE_ID
Usage:
$ cloudben export-records [OPTIONS] ZONE_ID
Arguments:
ZONE_ID
: [required]
Options:
--help
: Show this message and exit.
cloudben get-records
Get all the DNS records for a specific zone given a query. Example usage: cloudben get-records $zoneid --query "ben" --json
Usage:
$ cloudben get-records [OPTIONS] ZONE_ID
Arguments:
ZONE_ID
: your zone id [required]
Options:
--name-query TEXT
: Text to be contained in the record's name.--content-query TEXT
: Text to be contained in the record's content.--json / --no-json
: will output valid JSON. It can we useful when using this command in your script. Vanity logging will be disabled [default: no-json]--help
: Show this message and exit.
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
Built Distribution
File details
Details for the file cloudben-1.0.0.tar.gz
.
File metadata
- Download URL: cloudben-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.1 Linux/6.5.0-1017-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73d93b4f6f02139cca6d0b91242039a08d8c11e1ec91a1f9b83fa58ae072f8ba |
|
MD5 | 4c84b1a3929a49d70ff41e2c5ee3b1c6 |
|
BLAKE2b-256 | 5e98bf25645feaddd8f56773f74c830bd877b5503d1565e4eb28610216d43955 |
File details
Details for the file cloudben-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: cloudben-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.1 Linux/6.5.0-1017-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20d0bba737c5b4199a5adcba112aad64ecc4823b98006b237d39ffd5a499a192 |
|
MD5 | c23099b4e1b18f9d56db40eedf9fdda2 |
|
BLAKE2b-256 | b0118f5b2c66d0d9a43f9206d5016a71d5896478b263e4c014a12b73ffde5df4 |