-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add docs directory, remove noise from primary readme.md
- Loading branch information
1 parent
1ee4ba8
commit 4c471de
Showing
2 changed files
with
71 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Usage | ||
|
||
## [Token Verify π](https://developers.cloudflare.com/api/operations/user-api-tokens-verify-token) | ||
|
||
```bash | ||
cliflare token verify | ||
``` | ||
|
||
## [Zone List π](https://developers.cloudflare.com/api/operations/zones-get) | ||
|
||
```bash | ||
# print out all zone info | ||
cliflare zone list | ||
# print only zone "name" field -- i.e. domains | ||
cliflare zone list --domains | ||
``` | ||
|
||
## [Create a Zone π](https://developers.cloudflare.com/api/operations/zones-post) | ||
|
||
```bash | ||
cliflare zone create newzone.com | ||
``` | ||
|
||
## [Delete a Zone π](https://developers.cloudflare.com/api/operations/zones-0-delete) | ||
|
||
```bash | ||
cliflare zone delete newzone.com | ||
``` | ||
|
||
## [List DNS Records For A Zone π](https://developers.cloudflare.com/api/operations/dns-records-for-a-zone-list-dns-records) | ||
|
||
```bash | ||
cliflare dns list --zone_id <ZONE_ID> | ||
cliflare dns list --zone_name <DOMAIN> | ||
``` | ||
|
||
## [Export DNS Records For A Zone π](https://developers.cloudflare.com/api/operations/dns-records-for-a-zone-export-dns-records) | ||
|
||
```bash | ||
cliflare dns export --zone_id <ZONE_ID> | ||
cliflare dns export --zone_name <DOMAIN> | ||
``` | ||
|
||
## [Import DNS Records For A Zone π](https://developers.cloudflare.com/api/operations/dns-records-for-a-zone-import-dns-records) | ||
|
||
```bash | ||
cliflare dns import --file <PATH> --zone_id <ZONE_ID> | ||
cliflare dns import -file <PATH> --zone_name <DOMAIN> | ||
``` | ||
|
||
## [Delete All DNS Records For A Zone π](https://developers.cloudflare.com/api/operations/dns-records-for-a-zone-delete-dns-record) | ||
|
||
```bash | ||
cliflare dns clear --zone_id <ZONE_ID> | ||
cliflare dns clear --zone_name <DOMAIN> | ||
``` | ||
|
||
## [List All Settings For A Zone π](https://developers.cloudflare.com/api/operations/zone-settings-get-all-zone-settings) | ||
|
||
```bash | ||
cliflare settings list --zone_id <ZONE_ID> | ||
cliflare settings list --zone_name <DOMAIN> | ||
``` |