Auth0 CLI
$ auth0 Official High RiskAuth0 CLI (auth0) lets developers and agents inspect tenants, applications, APIs, Actions, and logs directly from the terminal. Consistent --json, --no-input, and --no-color flags make it strongly automation-ready, though tenant changes carry high IAM risk.
brew install auth0/auth0-cli/auth0 Auth0 CLI offers complete Management API coverage, local auth0 test token generation, and Action testing in one deterministic Go binary.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
First-class --json, --no-input, and --no-color flags across commands keep agent automation clean and deterministic.
- Global
--json,--no-input,--no-colorflags - Structured Cobra command hierarchy
Supports M2M client credentials for headless scoping, but tenant mutations affect authentication security and lack --dry-run.
- Separate tenant profiles via
auth0 tenants use - Write commands mutate IAM state immediately without dry-run
Single Go binary installable via Homebrew tap, go install, Docker, or GitHub releases.
- Official Homebrew tap and cross-platform binaries
High leverage for inspecting apps, APIs, Actions, logs, and minting test tokens.
- Includes
auth0 test tokenandauth0 logs tailutilities
Official Auth0 repository (auth0/auth0-cli) actively maintained under MIT.
- Official Auth0 GitHub organization
Dedicated GitHub Pages CLI reference plus built-in --help examples.
- Official docs at auth0.github.io/auth0-cli
Security, Auth & Guardrails
Stores tenant refresh tokens in ~/.config/auth0/config.json, or authenticates headlessly via AUTH0_DOMAIN, AUTH0_CLIENT_ID, and AUTH0_CLIENT_SECRET.
CLI is free (MIT); Auth0 offers a free developer tier for test tenants.
# Auth0 CLI Agent Rules - Verify `auth0 tenants list` points to a dev/staging tenant before running any write command. - Always pass `--json --no-input` to prevent interactive prompts or ANSI clutter. - Require explicit human approval before modifying production tenants, deleting clients, or revealing client secrets.
Agent-Ready Command Recipes
Safe Read-Only Queries
auth0 tenants list --json --no-input
Lists locally configured Auth0 tenants and active default tenant in JSON.
auth0 apps list --json --no-input --no-color
Retrieves application client IDs and types without mutating tenant configuration.
Controlled Writes & Previews
auth0 apis create --name "Staging API" --identifier https://staging.example.com --json --no-input
Creates a new API audience in a staging tenant with non-interactive JSON output.
Strengths for Agents
- + Clean Cobra CLI with consistent
--json,--no-input, and--no-colorglobal flags. - + Supports headless M2M authentication via
AUTH0_DOMAIN,AUTH0_CLIENT_ID, andAUTH0_CLIENT_SECRET. - + Built-in
auth0 test tokenaccelerates local API auth testing.
Caveats & Pitfalls
- ! Read output for
auth0 apps list --jsonmay include non-secret metadata, but--reveal-secretsshould be blocked in agent logs. - ! No
--dry-runflag oncreateorupdatesubcommands.