List
List all Cloudflare API tokens associated with the configured credentials.
Displays token ID, name, and status for each token.
Usage
goGenerateCFToken token listExamples
List all tokens as plain text
goGenerateCFToken token listList all tokens as JSON
goGenerateCFToken token list --jsonFilter by status
goGenerateCFToken token list --filter activeWrite to file
goGenerateCFToken token list --output tokens.txtCommand Options
| Flag | Short | Default | Type | Description |
|---|---|---|---|---|
--filter |
"" | string | Filter tokens by status (e.g., active, disabled) | |
--json |
false | bool | Output in JSON format | |
--output |
-o |
"" | string | Write output to file instead of stdout |
Global Options
| Flag | Short | Default | Type | Description |
|---|---|---|---|---|
--config |
-c |
"" | string | Path to config file |
--log-level |
-l |
info | string | Set logging level (debug, info, warn, error) |
--quiet |
-q |
false | bool | Suppress all output except errors |
--verbose |
-v |
false | bool | Enable verbose output |