cflr a Cloudflare Admin CLI
A collection of commands for working with a Cloudflare account.
This package authenticates against the Cloudflare API using environment variables. For managing these securely consider the excellent cf-vault project.
Quickstart
⚠️ Python >=3.11.x required.
$ git clone
$ python -m venv .venv
$ source .venv/bin/activate # DO NOT SKIP THIS STEP!
# install dependencies (pyproject.toml)
# if developing run `python -m pip install -e ".[dev]"` for an editable install
$ python -m pip install .
# run cflr
$ cflr --help
# or
$ python -m cflr --help
# or
$ python cflr/cli.py --help
Commands
$ sso
- Enterprise only.
- API endpoint:
/accounts/:account_id/sso/v2/connectors(undocumented as of 2024-01-13)- Requires Global API Key environment variables to be set.
list/enable/disable the SSO email domains configured.
Why is this useful
Cloudflare allow Enterprise plans to configure IdP's to enforce SSO access to the dashboard across email domain(s).
⚠️ If the IdP were to suffer an outage, access to the Cloudflare dashboard would be impacted as the SSO flow would fail.
In this instance, disabling the associated SSO email domain(s) will allow users to fallback to logging in via username/password/2FA.
Usage
$ cflr sso --help
$ cflr sso list :account_id
$ cflr sso disable :account_id # an interactive pick list is returned
$ cflr sso enable :account_id # an interactive pick list is returned
Metadata
Release files for cflr 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cflr-0.0.1.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cflr-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / cflr-0.0.1.tar.gz
| Download URL | cflr-0.0.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
081565eb944c87622fe038eb7335277c6c34c9eab9a61dc97e5be34108315323
|
|
BLAKE2b-256 checksum How to use checksums |
a8f8b2900f8165cb21e3f43b6a4770f4dd60a32003214f41534768c916957e65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / cflr-0.0.1-py3-none-any.whl
| Download URL | cflr-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a548214bf8eeb6e77f2f964f6f5005e86e9aff398c020ff06d56b626ad64436
|
|
BLAKE2b-256 checksum How to use checksums |
4dd1c3b17cfce65503fef6047b5d092993a6b4269c12e459b52782373061f1a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|