Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

29
flarectl Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# flarectl
> Official CLI for Cloudflare.
> More information: <https://github.com/cloudflare/cloudflare-go/blob/master/cmd/flarectl/README.md>.
- Block a specific IP:
`flarectl firewall rules create --zone="{{example.com}}" --value="{{8.8.8.8}}" --mode="{{block}}" --notes="{{Block bad actor}}"`
- Add a DNS record:
`flarectl dns create --zone="{{example.com}}" --name="{{app}}" --type="{{CNAME}}" --content="{{myapp.herokuapp.com}}" --proxy`
- List all Cloudflare IPv4/IPv6 ranges:
`flarectl ips --ip-type {{ipv4|ipv6|all}}`
- Create many new Cloudflare zones automatically with names from `domains.txt`:
`for domain in $(cat {{domains.txt}}); do flarectl zone info --zone=$domain; done`
- List all firewall rules:
`flarectl firewall rules list`