You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Global --account flag (like --zone) instead of only CLOUDFLARE_ACCOUNT_ID #553
When a login can see more than one account, account-level commands (for example cf ai-gateway gateways list, cf ai-gateway logs list, cf accounts billing get-credits) pick the account only from the CLOUDFLARE_ACCOUNT_ID environment variable. There's a global -z, --zone flag for zones, but no matching flag for accounts. Passing --account-id is rejected.
This makes one-off commands and scripts that touch two accounts in a row more awkward: each call has to be prefixed with the env var, and the account isn't visible in the command itself.
Suggestion: a global -a, --account <id or name> flag that overrides CLOUDFLARE_ACCOUNT_ID, the same way --zone overrides CLOUDFLARE_ZONE_ID.
Activity