diff --git a/README.md b/README.md index 486e9cb..885b0ac 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,15 @@ CLI tool to manage cloudflare DNS records ## Installation +### Using go ```bash ❯ go install go.balki.me/cloudflare-dns-cli@latest ``` +### Using docker +```bash +❯ mkdir -p $HOME/bin +❯ docker run --pull=always --rm -v "$HOME/bin:/op" golang sh -c "go install go.balki.me/cloudflare-dns-cli@latest && install -o $(id -u) -g $(id -g) /go/bin/cloudflare-dns-cli /op/" +``` ## Features @@ -33,7 +39,7 @@ Usage of cloudflare-dns-cli: ## Demo -===> [HERE](./demo.cast) <=== +===> [HERE](https://gitea.balki.me/balki/cloudflare-dns-cli/src/branch/main/demo.cast) <=== ## Similar * https://github.com/earlchew/cloudflare-cli @@ -42,6 +48,6 @@ Usage of cloudflare-dns-cli: ## Why another cli? 1. Keep it simple with minimum dependency and features -2. Uses [libdns](https://github.com/libdns) library maintained by [caddy](https://caddyserver.com) team +2. Uses [libdns](https://github.com/libdns) library maintained by [caddy](https://caddyserver.com) team. libdns provides uniform api for many dns providers. Mostly `s/cloudflare/XYZ/` should work when moving to a different dns provider