A cloudflare ctt in a docker container
100K+
flarectl in a docker container for using it in hopefully secure way :).
Otherwise we should try to secure it more.
Create an directory to save your credentials
mkdir -p $HOME/.cloudflare
Now save you credentials in an env file to have them presisent
cat > $HOME/.cloudflare/env <<EOF
CF_API_KEY=abcdef1234567890
[email protected]
EOF
Run the container
docker run -it --rm --env-file $HOME/.cloudflare/env solidnerd/cloudflare --help
The intention of this container is that it's a tool container so let him a tool container. For this we create an alias to have an normal feeling that this is a "tool" and not a container :)
For a temporay state use the following command
alias flarectl='docker run -it --rm --env-file $HOME/.cloudflare/env solidnerd/cloudflare'
This make it's persistent in your BASH Shell.
echo "alias flarectl='docker run -it --rm --env-file $HOME/.cloudflare/env solidnerd/cloudflare'" >> $HOME/.bashrc
This make it's persistent in your ZSH Shell.
echo "alias flarectl='docker run -it --rm --env-file $HOME/.cloudflare/env solidnerd/cloudflare'" >> $HOME/.zshrc
flarectl d c --zone example.com --name test.example.com --type CNAME --content example.com
flarectl d d test.example.com
Content type
Image
Digest
Size
4.5 MB
Last updated
over 9 years ago
docker pull solidnerd/cloudflare