https://github.com/jacobbednarz/cf
The next generation Cloudflare CLI
https://github.com/jacobbednarz/cf
Last synced: about 1 month ago
JSON representation
The next generation Cloudflare CLI
- Host: GitHub
- URL: https://github.com/jacobbednarz/cf
- Owner: jacobbednarz
- License: mit
- Created: 2023-03-14T01:46:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-14T01:59:21.000Z (about 2 years ago)
- Last Synced: 2024-12-14T13:18:17.569Z (5 months ago)
- Language: Go
- Size: 21.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cf
The next generation Cloudflare CLI.
> **Note** This doesn't yet work but serves as a place holder for an experimental CLI for interacting with Cloudflare APIs.
```
cf - a CLI tool for interacting with the Cloudflare APIUsage:
cf command [flags]
cf [command]Available Commands:
api Makes a HTTP call to the Cloudflare API
completion Generate the autocompletion script for the specified shell
help Help about any command
version Print the version number of `cf`Flags:
--api-key string the API key to use for authentication
--api-token string the API token to use for authentication
--base-url string base URL to use for HTTP interactions (default "https://api.cloudflare.com/client/v4")
--email string the email to use for authentication
-h, --help help for cf
-v, --verbose enable verbose debug logsUse "cf [command] --help" for more information about a command.
```The tool follows the pattern of `cf `. I.e.
`cf dns get d3b07384d113edec49eaa6238ad5ff00`## Commands
### `api`
Makes a HTTP call to an endpoint only passing the authentication headers.
Example: `cf api "/user"`