Skip to content
CLI Reference

CLI Reference

Complete command reference for goGenerateCFToken, organized by functional area.

Configuration

View, set, reset, delete, and validate the configuration file.

Command Description
delete Delete the config file and directory
init Initialize the config file
reset Reset the config file to defaults
set Set configuration value
show Show current configuration
validate Validate configuration file

Credentials

Store, remove, and validate Cloudflare API credentials.

Command Description
remove Remove API key from OS keyring
set Store API key in the OS keyring or a local credential file
validate Validate Cloudflare credentials

Tokens

Generate, list, get, and revoke Cloudflare API tokens.

Command Description
generate Generate a Cloudflare API token
get Get a single token’s metadata
list List Cloudflare API tokens
revoke Revoke a Cloudflare API token

Version

Print the application version, including commit SHA and build details.

Command Description
version Print the application version