Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 39 additions & 3 deletions main/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2129,8 +2129,9 @@
]
},
"docs/deploy-monitor/deploy-checklist",
"docs/deploy-monitor/auth0-cli",
{
"group": "Deploy CLI Tool",
"group": "Auth0 Deploy CLI",
"pages": [
"docs/deploy-monitor/deploy-cli-tool",
"docs/deploy-monitor/deploy-cli-tool/use-as-a-cli",
Expand Down Expand Up @@ -2476,6 +2477,17 @@
}
]
},
{
Copy link
Contributor

@avanscoy avanscoy Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending. We need to discuss criteria for adding content to the top menu as well as check with the author about Design.

"tab": "Developer Tools",
"groups": [
{
"group": " ",
"pages": [
"docs/developer-tools"
]
}
]
},
{
"tab": "Events Catalog",
"href": "https://auth0.com/docs/events/"
Expand Down Expand Up @@ -4536,8 +4548,9 @@
]
},
"docs/fr-ca/deploy-monitor/deploy-checklist",
"docs/fr-ca/deploy-monitor/auth0-cli",
{
"group": "Outil Deploy CLI",
"group": "Auth0 Deploy CLI",
"pages": [
"docs/fr-ca/deploy-monitor/deploy-cli-tool",
"docs/fr-ca/deploy-monitor/deploy-cli-tool/use-as-a-cli",
Expand Down Expand Up @@ -4875,6 +4888,17 @@
}
]
},
{
"tab": "Developer Tools",
"groups": [
{
"group": " ",
"pages": [
"docs/fr-ca/developer-tools"
]
}
]
},
{
"tab": "Events Catalog",
"href": "https://auth0.com/docs/events/"
Expand Down Expand Up @@ -6936,8 +6960,9 @@
]
},
"docs/ja-jp/deploy-monitor/deploy-checklist",
"docs/ja-jp/deploy-monitor/auth0-cli",
{
"group": "CLIツールのデプロイ",
"group": "Auth0 Deploy CLI",
"pages": [
"docs/ja-jp/deploy-monitor/deploy-cli-tool",
"docs/ja-jp/deploy-monitor/deploy-cli-tool/use-as-a-cli",
Expand Down Expand Up @@ -7275,6 +7300,17 @@
}
]
},
{
"tab": "Developer Tools",
"groups": [
{
"group": " ",
"pages": [
"docs/ja-jp/developer-tools"
]
}
]
},
{
"tab": "Events Catalog",
"href": "https://auth0.com/docs/events/"
Expand Down
187 changes: 187 additions & 0 deletions main/docs/deploy-monitor/auth0-cli.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
---
description: Learn about the Auth0 CLI and how to use it for tenant management.
'og:image': https://cdn2.auth0.com/docs/1.14553.0/img/share-image.png
'og:title': Auth0 CLI
'og:url': https://auth0.com/docs/
permalink: auth0-cli
title: Auth0 CLI
'twitter:description': Learn about the Auth0 CLI and how to use it for tenant management.
'twitter:title': Auth0 CLI
---

<Callout icon="📚">
For complete CLI command reference and detailed usage information, see the [Auth0 CLI Reference Documentation](https://auth0.github.io/auth0-cli/).
</Callout>

<Card title="Before you start">

Set up an [Auth0 Tenant](https://manage.auth0.com/).

</Card>

The Auth0 CLI is a command-line tool that provides direct access to the Auth0 Management API, enabling you to manage your Auth0 tenant from your terminal. It's designed for interactive use during development and can be integrated into scripts for automation.

## 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:

```bash lines
brew tap auth0/auth0-cli
brew install auth0
```

### Linux

```bash lines
curl -sSfL https://raw.githubusercontent.com/auth0/auth0-cli/main/install.sh | sh -s -- -b /usr/local/bin
```

### Windows

Using Scoop:

```powershell lines
scoop bucket add auth0 https://github.com/auth0/scoop-auth0-cli.git
scoop install auth0
```

Or download the latest release from the [GitHub releases page](https://github.com/auth0/auth0-cli/releases).

## Authentication

Before using the Auth0 CLI, you need to authenticate:

```bash lines
auth0 login
```

This will open a browser window for you to log in to your Auth0 account. You can also authenticate using a machine-to-machine application:

```bash lines
auth0 login --domain <your-domain> --client-id <client-id> --client-secret <client-secret>
```

## Common Commands

### Manage Applications

```bash lines
# List all applications
auth0 apps list

# Create a new application
auth0 apps create --name "My App" --type spa

# Show application details
auth0 apps show <app-id>

# Update an application
auth0 apps update <app-id> --callbacks "http://localhost:3000/callback"

# Delete an application
auth0 apps delete <app-id>
```

### Manage APIs

```bash lines
# List all APIs
auth0 apis list

# Create a new API
auth0 apis create --name "My API" --identifier "https://my-api.example.com"

# Show API details
auth0 apis show <api-id>
```

### Manage Users

```bash lines
# List users
auth0 users list

# Create a user
auth0 users create --email "[email protected]" --connection "Username-Password-Authentication"

# Show user details
auth0 users show <user-id>

# Update a user
auth0 users update <user-id> --email "[email protected]"
```

### Manage Tenant Settings

```bash lines
# Show current tenant
auth0 tenants list

# Update tenant settings
auth0 tenants update
```

## Using in Scripts

The Auth0 CLI supports JSON output for easy parsing in scripts:

```bash lines
# Get application details as JSON
auth0 apps show <app-id> --json

# Create an app and capture the output
auth0 apps create --name "My App" --type spa --json > app-details.json
```

## 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.

## Documentation and Support

For complete documentation, command reference, and examples, visit:

* [Auth0 CLI GitHub Repository](https://github.com/auth0/auth0-cli)
* [Auth0 CLI Documentation](https://auth0.github.io/auth0-cli/)

## Next Steps

<Columns cols={3}>
<Card title="Deploy CLI" href="/docs/deploy-monitor/deploy-cli-tool" icon="rocket">
Learn about managing tenant configuration with the Deploy CLI
</Card>
<Card title="Terraform Provider" href="/docs/deploy-monitor/auth0-terraform-provider" icon="code">
Explore infrastructure-as-code with Terraform
</Card>
<Card title="Management API" href="/docs/api/management/v2" icon="code-branch">
Access the Auth0 Management API directly
</Card>
</Columns>
7 changes: 6 additions & 1 deletion main/docs/deploy-monitor/auth0-terraform-provider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ title: Auth0 Terraform Provider
tenant configurations as code.
'twitter:title': Auth0 Terraform Provider
---
The Deploy CLI is not the only tool available for managing your Auth0 tenant configuration, there is also an [officially supported Terraform Provider](https://github.com/auth0/terraform-provider-auth0). [Terraform](https://terraform.io/) is a third-party tool for representing your cloud resources’ configurations as code. It has an established plug-in framework that supports a wide array of cloud providers, including Auth0.

<Callout icon="📚">
For complete resource documentation and configuration examples, see the [Terraform Provider Reference Documentation](https://registry.terraform.io/providers/auth0/auth0/latest/docs).
</Callout>

The Deploy CLI is not the only tool available for managing your Auth0 tenant configuration, there is also an [officially supported Terraform Provider](https://github.com/auth0/terraform-provider-auth0). [Terraform](https://terraform.io/) is a third-party tool for representing your cloud resources' configurations as code. It has an established plug-in framework that supports a wide array of cloud providers, including Auth0.

Both the Deploy CLI and Terraform Provider exist to help you manage your Auth0 tenant configurations, but each has their own set of pros and cons.

Expand Down
15 changes: 10 additions & 5 deletions main/docs/deploy-monitor/deploy-cli-tool.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
---
description: Learn about the Auth0 Deploy CLI Tool and how it works.
description: Learn about the Auth0 Deploy CLI and how it works.
'og:image': https://cdn2.auth0.com/docs/1.14553.0/img/share-image.png
'og:title': Deploy CLI Tool
'og:title': Auth0 Deploy CLI
'og:url': https://auth0.com/docs/
permalink: deploy-cli-tool
sidebarTitle: Overview
title: Deploy CLI Tool
'twitter:description': Learn about the Auth0 Deploy CLI Tool and how it works.
'twitter:title': Deploy CLI Tool
title: Auth0 Deploy CLI
'twitter:description': Learn about the Auth0 Deploy CLI and how it works.
'twitter:title': Auth0 Deploy CLI
---

<Callout icon="📚">
For complete configuration options and advanced usage, see the [Deploy CLI Configuration Reference](https://github.com/auth0/auth0-deploy-cli/blob/master/docs/configuring-the-deploy-cli.md).
</Callout>

<Card title="Before you start">

Set up an [Auth0 Tenant](https://manage.auth0.com/).
Expand Down
Loading
Loading