This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/bin/dns-cleaner
2021-07-05 23:06:30 -05:00

8 lines
233 B
Bash
Executable file

#!/usr/bin/env bash
set -x -e
API="https://api.netlify.com/api/v1"
TOKEN="$(pass netlify | grep -i token | tr -d ' ' | cut -d ':' -f 2)"
URL="$API/dns_zones/lyte_dev/dns_records?access_token=$TOKEN"
curl -sL "$URL" > /tmp/zone.json