Get current user
Automatically get current user on cloudflare.com. Report which Cloudflare account this browser is signed in as: email, display name (first + last name from the profile; null when none is set) and user id, from the dashboard's own user API. Being signed out is a normal answer (loggedIn false), not an error.
Input
None
Output
loggedIn requiredid optionalemail optionaldisplayName optionalFAQ
Cloudflare: list invoices
List Cloudflare invoices across every account visible to the signed-in user. Returns per account name, accountId, and invoices with date, type, number, amount, status. Accounts with no invoices come back with an empty invoices array rather than an error.
Cloudflare login (Google SSO)
Log into the Cloudflare dashboard via the Google button. Dismisses the cookie banner, handles a remembered-account quick sign-in if one exists, drives the chooser, and lands on the dashboard. Best run on your own paired browser rather than a freshly launched one, since it relies on an existing Google session. Known limitation: if Cloudflare forces a 2FA or passkey step-up on the Google redirect, the login can't complete unattended — verify that step manually once in the same browser, then re-run. Optional `email` arg picks which Google account to use.
Cloudflare: invite member
Invite a new member into one Cloudflare account by email, granting an account-wide permission policy for a named role (e.g. "Administrator", "Billing") matched against the account's own role picker. Returns the invited email, role, accountId and pending status.
