← 返回 Skills 市场
auth0

Auth0 Cli

作者 Auth0 · GitHub ↗ · v1.0.1 · MIT-0
darwinlinux ⚠ suspicious
33
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install auth0-cli
功能描述
Reference for Auth0 CLI commands — apps, apis, users, roles, organizations, actions, logs, custom domains, universal-login, terraform, raw API mode, and --js...
使用说明 (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

安全使用建议
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.
功能分析
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.
能力标签
cryptorequires-walletrequires-oauth-tokenrequires-sensitive-credentials
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install auth0-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /auth0-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Initial publish
元数据
Slug auth0-cli
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Auth0 Cli 是什么?

Reference for Auth0 CLI commands — apps, apis, users, roles, organizations, actions, logs, custom domains, universal-login, terraform, raw API mode, and --js... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 33 次。

如何安装 Auth0 Cli?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install auth0-cli」即可一键安装,无需额外配置。

Auth0 Cli 是免费的吗?

是的,Auth0 Cli 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Auth0 Cli 支持哪些平台?

Auth0 Cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux)。

谁开发了 Auth0 Cli?

由 Auth0(@auth0)开发并维护,当前版本 v1.0.1。

💬 留言讨论