For complete CLI command reference and detailed usage information, see the Auth0 CLI Reference Documentation.
Before you start
Set up an Auth0 Tenant.
Key Features
- Interactive Management: Quickly create, update, and manage Auth0 resources from the command line
- Authentication Support: Multiple authentication methods including user login and machine-to-machine credentials
- Resource Management: Full CRUD operations for applications, APIs, connections, users, and more
- Cross-Platform: Available for macOS, Linux, and Windows
- JSON Output: Machine-readable output for scripting and automation
Installation
macOS
Using Homebrew:Linux
Windows
Using Scoop:Authentication
Before using the Auth0 CLI, you need to authenticate:Common Commands
Manage Applications
Manage APIs
Manage Users
Manage Tenant Settings
Using in Scripts
The Auth0 CLI supports JSON output for easy parsing in scripts:Use Cases
The Auth0 CLI is ideal for:- Development Workflows: Quickly set up and configure Auth0 resources during development
- Testing: Create test applications and users for automated testing
- Debugging: Inspect and modify Auth0 configuration in real-time
- Scripting: Automate repetitive tasks with shell scripts
- CI/CD Integration: Integrate Auth0 configuration into your deployment pipelines
Comparison with Other Tools
Auth0 CLI vs Deploy CLI
- Auth0 CLI: Interactive, command-by-command resource management. Best for development and ad-hoc tasks.
- Deploy CLI: Declarative, configuration-file-based tenant management. Best for managing entire tenant configurations across environments.
Auth0 CLI vs Terraform Provider
- Auth0 CLI: Imperative commands for immediate changes. No state management.
- Terraform Provider: Declarative infrastructure-as-code with state tracking. Best for production infrastructure management.