← Back to Skills Marketplace
auth0

Auth0 Cli

by Auth0 · GitHub ↗ · v1.0.1 · MIT-0
darwinlinux ⚠ suspicious
33
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install auth0-cli
Description
Reference for Auth0 CLI commands — apps, apis, users, roles, organizations, actions, logs, custom domains, universal-login, terraform, raw API mode, and --js...
README (SKILL.md)

Auth0 CLI — Command Reference

The Auth0 CLI (auth0) lets you manage your tenant from the terminal. Install with brew install auth0/auth0-cli/auth0. For complete flag definitions and examples, see the Full CLI Reference.


Before You Start: Authenticate

auth0 login                          # interactive device-code login
auth0 login --scopes "read:client_grants"  # request extra scopes if 403
auth0 login --domain \x3Ctenant>.auth0.com --client-id \x3Cid> --client-secret \x3Csecret>  # CI/CD

See Authentication Details for machine login with JWT, tenant management, and logout.


Quick Decision Guide

What you're doing Command to use
Setting up a new project auth0 apps create --type spa|regular|m2m|native --json
Need a client ID or secret auth0 apps show \x3Cid> -r --json
Registering a backend API auth0 apis create --identifier "https://..." --json
Finding a user's ID auth0 users search --query "email:..." --json
Creating/managing roles (RBAC) auth0 roles create / auth0 users roles assign
B2B multi-tenancy auth0 orgs create
Custom login logic auth0 actions create --trigger post-login --json
Branding the login page auth0 ul update --logo ... --accent ...
Custom domain for login auth0 domains create --domain "auth.myapp.com" --json
Debugging a failed login auth0 logs tail --filter "type:f" --json-compact
Testing a login flow auth0 test login \x3Cclient-id>
Exporting config as Terraform auth0 terraform generate --output-dir ./terraform
Managing connections, grants, hooks auth0 api get \x3Cpath>
Scripting / parsing output Add --json or --json-compact to any command
Security hardening auth0 protection brute-force-protection update --enabled true
Routing logs externally auth0 logs streams create datadog|http|splunk
Bulk importing users auth0 users import --connection-name ... --users '...' --json

Command Overview

Apps — Manage Applications

Create or inspect Auth0 applications (client ID, secret, callback URLs, app type). Alias: auth0 clients.

auth0 apps create --name "My SPA" --type spa \
  --callbacks "http://localhost:3000" \
  --logout-urls "http://localhost:3000" \
  --origins "http://localhost:3000" --json

auth0 apps list --json-compact
auth0 apps show \x3Cclient-id> --reveal-secrets --json
auth0 apps update \x3Cclient-id> --callbacks "http://localhost:3000,https://myapp.com" --json
auth0 apps delete \x3Cclient-id> --force

App types: spa, regular, m2m, native, resource_server

Full details: Apps Reference

APIs — Manage API Resources

Register backend APIs (Resource Servers) to protect with Auth0 tokens. Alias: auth0 resource-servers.

auth0 apis create --name "My API" --identifier "https://api.myapp.com" \
  --scopes "read:data,write:data" --token-lifetime 3600 --json

auth0 apis list --json-compact
auth0 apis scopes list \x3Capi-id> --json

Key distinction: apps = the client requesting tokens. apis = the resource accepting tokens.

Full details: APIs Reference

Users — Manage Users

Create, search, inspect, import, and manage users in your tenant.

auth0 users search --query "email:[email protected]" --json
auth0 users search-by-email [email protected] --json-compact
auth0 users create --connection-name "Username-Password-Authentication" \
  --email "[email protected]" --password "SecureP@ss!" --json
auth0 users show \x3Cuser-id> --json
auth0 users blocks list \x3Cemail> --json
auth0 users blocks unblock \x3Cemail>
auth0 users import --connection-name "Username-Password-Authentication" \
  --users '[...]' --upsert --json

Full details: Users Reference

Roles — Manage RBAC Roles

Create roles, assign permissions, and assign roles to users. The CLI has dedicated commands for all role operations.

auth0 roles create --name "editor" --description "Can edit content" --json
auth0 roles permissions add \x3Crole-id> --api-id \x3Capi-id> --permissions "read:data,write:data" --json
auth0 users roles assign \x3Cuser-id> --roles \x3Crole-id>
auth0 users roles show \x3Cuser-id> --json-compact

Full details: Roles Reference

Organizations — B2B Multi-Tenancy

Manage organizations for B2B SaaS scenarios. Alias: auth0 orgs.

auth0 orgs create --name "acme-corp" --display "Acme Corporation" \
  --logo "https://acme.com/logo.png" --accent "#FF6600" --json
auth0 orgs members list \x3Corg-id> --json
auth0 orgs invitations create --org-id \x3Corg-id> --invitee-email "[email protected]" \
  --inviter-name "Admin" --client-id \x3Cid> --json

Full details: Organizations Reference

Actions — Serverless Auth Pipeline

Create and deploy serverless functions at auth pipeline trigger points. Replaces deprecated Rules.

auth0 actions create --name "Add Claims" --trigger "post-login" \
  --code 'exports.onExecutePostLogin = async (event, api) => { ... }' --json
auth0 actions deploy \x3Caction-id>

Triggers: post-login, credentials-exchange, pre-user-registration, post-user-registration, post-change-password, send-phone-message

Important: You must deploy after creating or updating for changes to take effect.

Full details: Actions Reference

Logs — Debugging & Monitoring

auth0 logs tail --filter "type:f" --json-compact    # real-time failed logins
auth0 logs list --filter "type:f" --number 20 --json-compact  # historical

Common codes: s (success), f (failed login), slo (logout), fs (silent auth failure)

Full details: Logs Reference

Domains — Custom Domains

auth0 domains create --domain "auth.myapp.com" --type "auth0_managed_certs" --json
auth0 domains verify \x3Cdomain-id> --json

Full details: Domains Reference

Universal Login — Branding

auth0 ul update --accent "#FF6600" --background "#FFFFFF" \
  --logo "https://myapp.com/logo.png" --json

Full details: Universal Login Reference

Terraform — Export as IaC

auth0 terraform generate --output-dir ./terraform --resources "auth0_client,auth0_connection"

Full details: Terraform Reference

Test — Verify Login Flows

auth0 test login \x3Cclient-id>
auth0 test login \x3Cclient-id> --audience "https://api.myapp.com" --scopes "openid profile email"

Full details: Test Reference

Attack Protection — Security Hardening

auth0 protection brute-force-protection update --enabled true
auth0 protection breached-password-detection update --enabled true
auth0 protection bot-detection update --enabled true

Full details: Attack Protection Reference

Log Streams — External Routing

auth0 logs streams create datadog    # interactive setup
auth0 logs streams create http       # custom webhook
auth0 logs streams list --json

Supported: eventbridge, eventgrid, http, datadog, splunk, sumo

Full details: Log Streams Reference

Raw API Mode — Direct Management API Access

When a dedicated command doesn't exist, auth0 api calls Management API v2 endpoints directly.

auth0 api get connections
auth0 api post client-grants --data '{"client_id":"...","audience":"...","scope":["read:data"]}'
auth0 api get stats/daily -q "from=20240101" -q "to=20240131"

Full details: Raw API Reference


Output Formatting

Always use --json or --json-compact for machine-readable output. Three modes (mutually exclusive):

Flag When to use
--json Human inspection, debugging — pretty-printed with indentation
--json-compact Piping to jq, scripting, pipelines — compact single-line
--csv Spreadsheets and tabular export
auth0 apps list --json-compact | jq '.[] | {client_id, name}'
auth0 users show \x3Cuser-id> --json-compact | jq '{id: .user_id, email: .email}'
auth0 roles list --json-compact | jq '.[].name'

Full details: Output Formatting Reference


Reference Documentation

Complete CLI reference with all flags, examples, and usage patterns:


Related Skills

  • auth0-quickstart — Initial Auth0 setup, framework detection
  • auth0-migration — Migrate from other auth providers
  • auth0-mfa — Multi-Factor Authentication setup

References

Usage Guidance
Install this only if you intend to let the agent help administer Auth0. Before allowing commands to run, confirm the active tenant, requested scopes, target resource IDs, and whether the command mutates or deletes anything. Avoid --force, raw API mode, secret-revealing output, and live Action deployments unless you explicitly requested them and understand the impact.
Capability Analysis
Type: OpenClaw Skill Name: auth0-cli Version: 1.0.1 The auth0-cli skill bundle is a comprehensive and well-documented reference for the official Auth0 CLI tool, designed to help an AI agent manage Auth0 tenants. It provides detailed instructions and examples for managing applications, users, roles, and security settings in SKILL.md and references/cli.md, supported by a thorough suite of functional tests in tests/evals.json. No indicators of malicious intent, such as data exfiltration, unauthorized execution, or deceptive prompt injection, were found.
Capability Tags
cryptorequires-walletrequires-oauth-tokenrequires-sensitive-credentials
Capability Assessment
Purpose & Capability
The skill is coherent for its stated purpose, but that purpose includes high-impact Auth0 tenant administration such as managing apps, APIs, users, roles, organizations, actions, custom domains, logs, Terraform exports, and direct Management API calls.
Instruction Scope
The instructions include destructive and broad commands such as force deletes and raw API access, without explicit guardrails requiring confirmation of tenant, resource IDs, scope, or rollback before mutation.
Install Mechanism
The install path is a purpose-aligned Homebrew install of the Auth0 CLI, and no executable skill code is included; the main risk comes from what the CLI can do once authenticated.
Credentials
The skill expects authenticated Auth0 access and documents client secrets, private keys, extra Management API scopes, and secret-revealing output, which is proportionate to Auth0 administration but highly sensitive.
Persistence & Privilege
The artifacts describe Auth0 login, tenant switching, and logout, but do not show hidden background persistence. Users should still treat the active CLI session as privileged tenant access.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install auth0-cli
  3. After installation, invoke the skill by name or use /auth0-cli
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Initial publish
Metadata
Slug auth0-cli
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Auth0 Cli?

Reference for Auth0 CLI commands — apps, apis, users, roles, organizations, actions, logs, custom domains, universal-login, terraform, raw API mode, and --js... It is an AI Agent Skill for Claude Code / OpenClaw, with 33 downloads so far.

How do I install Auth0 Cli?

Run "/install auth0-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Auth0 Cli free?

Yes, Auth0 Cli is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Auth0 Cli support?

Auth0 Cli is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin, linux).

Who created Auth0 Cli?

It is built and maintained by Auth0 (@auth0); the current version is v1.0.1.

💬 Comments