Skip to content

List

List all Cloudflare API tokens associated with the configured credentials.

Displays token ID, name, and status for each token.

Usage

goGenerateCFToken token list

Examples

List all tokens as plain text

goGenerateCFToken token list

List all tokens as JSON

goGenerateCFToken token list --json

Filter by status

goGenerateCFToken token list --filter active

Write to file

goGenerateCFToken token list --output tokens.txt

Command 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