site-command icon indicating copy to clipboard operation
site-command copied to clipboard

Add support for Cloudflare API Token replacing legacy API Key

Open thekordy opened this issue 2 years ago • 0 comments

As stated here: https://developers.cloudflare.com/fundamentals/api/get-started/keys/

Global API key is the previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API key.

This small pull request will add support for users to use Cloudflare API tokens instead of email+API Key (which could also solve the problem stated here #302 ) that is more secured settings than entering the global API key.

As a result, only API token is needed, users won't need to set their Cloudflare email.

set the config

ee config set cloudflare-api-token <cf-api-token>

renew SSL

ee site ssl-renew <site-name>

thekordy avatar Mar 29 '23 19:03 thekordy