Build, manage and test your Auth0 integrations from the command line.
Installation
macOS
Install via Homebrew:
brew tap auth0/auth0-cli && brew install auth0
Windows
Install via Scoop:
scoop bucket add auth0 https://github.com/auth0/scoop-auth0-cli.git && scoop install auth0
Linux
Install via cURL:
curl -sSfL https://raw.githubusercontent.com/auth0/auth0-cli/main/install.sh | sh -s -- -b .
Go
Install via Go:
go install github.com/auth0/auth0-cli/cmd/auth0@latest
Manual
- Download the appropriate binary for your environment from the latest release
- Extract the archive
- Run
./auth0
Autocompletion instructions for supported platforms available by running auth0 completion -h
Authenticating to Your Tenant
Authenticating to your Auth0 tenant is required for most functions of the CLI. It can be initiated by running:
auth0 login
There are two ways to authenticate:
- As a user - Recommended when invoking on a personal machine or other interactive environment. Facilitated by device authorization flow.
- As a machine - Recommended when running on a server or non-interactive environments (ex: CI). Facilitated by client credentials flow. Flags available for bypassing interactive shell.
Authenticating as a user is not supported for private cloud tenants. Instead, those users should authenticate with client credentials.
Available Commands
- auth0 actions - Manage resources for actions
- auth0 api - Makes an authenticated HTTP request to the Auth0 Management API
- auth0 apis - Manage resources for APIs
- auth0 apps - Manage resources for applications
- auth0 completion - Setup autocomplete features for this CLI on your terminal
- auth0 domains - Manage custom domains
- auth0 email - Manage email settings
- auth0 login - Authenticate the Auth0 CLI
- auth0 logout - Log out of a tenant’s session
- auth0 logs - View tenant logs
- auth0 orgs - Manage resources for organizations
- auth0 protection - Manage resources for attack protection
- auth0 quickstarts - Quickstart support for getting bootstrapped
- auth0 roles - Manage resources for roles
- auth0 rules - Manage resources for rules
- auth0 tenants - Manage configured tenants
- auth0 terraform - Manage terraform configuration for your Auth0 Tenant
- auth0 test - Try your Universal Login box or get a token
- auth0 universal-login - Manage the Universal Login experience
- auth0 users - Manage resources for users