{"id":15046650,"url":"https://github.com/auth0/auth0-deploy-cli","last_synced_at":"2026-01-30T10:21:13.785Z","repository":{"id":37549607,"uuid":"73518595","full_name":"auth0/auth0-deploy-cli","owner":"auth0","description":"The Auth0 Deploy CLI is a tool that helps you manage your Auth0 tenant configuration. It integrates into your development workflows as a standalone CLI or as a node module.","archived":false,"fork":false,"pushed_at":"2025-05-08T09:47:48.000Z","size":6211,"stargazers_count":259,"open_issues_count":19,"forks_count":162,"subscribers_count":39,"default_branch":"master","last_synced_at":"2025-05-08T19:47:23.193Z","etag":null,"topics":["dx-cdt"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/auth0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-11-11T23:14:56.000Z","updated_at":"2025-05-08T09:36:53.000Z","dependencies_parsed_at":"2022-07-12T16:22:50.530Z","dependency_job_id":"fc523b61-75b6-4cc2-94dd-4c24437c1e68","html_url":"https://github.com/auth0/auth0-deploy-cli","commit_stats":{"total_commits":1204,"total_committers":93,"mean_commits":"12.946236559139784","dds":0.7093023255813953,"last_synced_commit":"998fba2c06e39bac59b690fa9a7f6f5d7d254419"},"previous_names":[],"tags_count":184,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0%2Fauth0-deploy-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0%2Fauth0-deploy-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0%2Fauth0-deploy-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/auth0%2Fauth0-deploy-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/auth0","download_url":"https://codeload.github.com/auth0/auth0-deploy-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253876078,"owners_count":21977566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dx-cdt"],"created_at":"2024-09-24T20:53:20.472Z","updated_at":"2026-01-12T11:32:25.542Z","avatar_url":"https://github.com/auth0.png","language":"TypeScript","funding_links":[],"categories":["Developer Ecosystem"],"sub_categories":[],"readme":"![Deploy CLI Banner](https://cdn.auth0.com/website/sdks/banners/auth0-deploy-cli-banner.png)\n\n[![npm version](https://badge.fury.io/js/auth0-deploy-cli.svg)](https://badge.fury.io/js/auth0-deploy-cli)\n[![CircleCI](https://circleci.com/gh/auth0/auth0-deploy-cli/tree/master.svg?style=svg)](https://circleci.com/gh/auth0/auth0-deploy-cli/tree/master)\n[![codecov](https://codecov.io/gh/auth0/auth0-deploy-cli/branch/master/graph/badge.svg)](https://codecov.io/gh/auth0/auth0-deploy-cli)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[\u003cimg src=\"https://devin.ai/assets/deepwiki-badge.png\" alt=\"Ask questions about auth0-deploy-cli on DeepWiki\" height=\"20\"/\u003e](https://deepwiki.com/auth0/auth0-deploy-cli)\n\nThe Auth0 Deploy CLI is a tool that helps you manage your Auth0 tenant configuration. It integrates into your development workflows as a standalone CLI or as a node module.\n\n**Supported resource types:** actions, branding, client grants, clients (applications), connections, databases, custom domains, email templates, emails, grants, guardian, hook secrets, log streams, organizations, pages, prompts, resource servers (APIs), roles, tenant settings, themes, forms, flows, self-service profiles, network ACLs.\n\n🎢 [Highlights](#highlights) • 📚 [Documentation](#documentation) • 🚀 [Getting Started](#getting-started) • 📝 [Feedback](#feedback) • 💬 [Discussions](https://github.com/auth0/auth0-deploy-cli/discussions)\n\n---\n\n## Highlights\n\n- **Multi-Environment Oriented:** Designed to help you test your applications' Auth0 integrations from feature branch all the way to production.\n- **Keyword Replacement:** Shared resource configurations across all environments with dynamic keyword replacement.\n- **Versatile:** Integrate into your CI/CD workflows either as a CLI or as a Node module.\n\n## Documentation\n\n- [Using as a CLI](docs/using-as-cli.md)\n- [Using as a Node Module](docs/using-as-node-module.md)\n- [Authenticating with Tenant](docs/authenticating-with-tenant.md)\n- [Configuring the Deploy CLI](docs/configuring-the-deploy-cli.md)\n- [Keyword Replacement](docs/keyword-replacement.md)\n- [Incorporating Into Multi-environment Workflows](docs/multi-environment-workflow.md)\n- [Excluding Resources From Management](docs/excluding-from-management.md)\n- [Resource-specific Documentation](docs/resource-specific-documentation.md)\n- [Available Resource Formats](docs/available-resource-config-formats.md)\n- [Terraform Provider](docs/terraform-provider.md)\n- [How to Contribute](docs/how-to-contribute.md)\n\n## Getting Started\n\nThis guide will help you to a working implementation of the Deploy CLI tool used as a standalone CLI. There are three main steps before the Deploy CLI can be run:\n\n1. [Create a Dedicated Auth0 Application](#create-a-dedicated-auth0-application)\n2. [Configure the Deploy CLI](#configure-the-deploy-cli)\n3. [Calling the Deploy CLI](#calling-the-deploy-cli)\n\n\u003e **Warning**\n\u003e This tool can be destructive to your Auth0 tenant.\n\u003e It is recommended to be familiar with the [`AUTH0_ALLOW_DELETE` configuration](docs/configuring-the-deploy-cli.md#auth0allowdelete) and to test on development tenants prior to using in production.\n\n### Prerequisites\n\n- [Node](https://nodejs.dev/) version 20(v20.19.0) or greater\n- [Auth0 Tenant](https://auth0.com/)\n\n### Install the Deploy CLI\n\nTo run as a standalone command-line tool:\n\n```shell\nnpm install -g auth0-deploy-cli\n```\n\n### Create a dedicated Auth0 Application\n\nIn order for the Deploy CLI to call the Management API, a dedicated Auth0 application must be created to make calls on behalf of the tool.\n\n1. From the Auth0 dashboard, navigate to **Applications \u003e Applications**\n2. Click “Create Application”\n3. On Create application page:\n   a. Name it “Deploy CLI” or similar\n   b. Select “Machine to Machine Applications” as application type\n   c. Click “Create”\n4. On the “Authorize Machine to Machine Application” page\n   a. Select “Auth0 Management API”\n   b. Select the appropriate permissions for the resources you wish to manage. Refer to the [Client Scopes](#client-scopes) section for more information.\n   c. Click “Authorize”\n\n\u003e **Warning**\n\u003e The Deploy CLI's own client is unconfigurable by itself to [prevent potentially destructive changes](./docs/resource-specific-documentation.md#client-grants).\n\n#### Client Scopes\n\nThe designated application needs to be granted scopes in order to allow the Deploy CLI to execute Management operations.\n\nThe principle of least privilege is abided, so it will operate within the set of permissions granted. At a minimum, `read:clients` need to be selected, but is is recommended to select `read:`, `create:` and `update:` permissions for all resource types within management purview. To enable deletions, the `delete:` scopes are also necessary.\n\n### Configure the Deploy CLI\n\nThe Deploy CLI can be configured two ways, through a `config.json` file and through environment variables. The decision to choose one or both would depend on your specific use case and preferences. More comprehensive information about configuring the tool can be found on the [Configuring the Deploy CLI](docs/configuring-the-deploy-cli.md) page. However, for this example, the simplest way to get going is by setting the following environment variables:\n\n- `AUTH0_DOMAIN`\n- `AUTH0_CLIENT_ID`\n- `AUTH0_CLIENT_SECRET`\n\nThese values can be found in the “Settings” and “Credentials“ tabs within the Auth0 application created in the previous step.\n\n### Calling the Deploy CLI\n\nFinally, with above complete, the Deploy CLI export command can be run:\n\n```shell\na0deploy export --format=yaml --output_folder=local\n```\n\nOnce the process completes, observe the resource configuration files generated in the `local` directory. Then, run the import command, which pushes configuration from the local machine to your Auth0 tenant:\n\n```shell\na0deploy import --config_file=config.json --input_file local/tenant.yaml\n```\n\nRefer to [Using as a CLI](./docs/using-as-cli.md) documentation for a comprehensive list of flags and options.\n\n## Feedback\n\n### Contributing\n\nWe appreciate feedback and contribution to this repo! Before you get started, please see the following:\n\n- [Contribution Guide](./CONTRIBUTING.md)\n- [Auth0's General Contribution Guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)\n- [Auth0's Code of Conduct Guidelines](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)\n\n### Raise an issue\n\nTo provide feedback or report a bug, [please raise an issue on our issue tracker](https://github.com/auth0/auth0-deploy-cli/issues).\n\n### Vulnerability Reporting\n\nPlease do not report security vulnerabilities on the public Github issue tracker. The [Responsible Disclosure Program](https://auth0.com/responsible-disclosure-policy) details the procedure for disclosing security issues.\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://cdn.auth0.com/website/sdks/logos/auth0_light_mode.png\" width=\"150\"\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://cdn.auth0.com/website/sdks/logos/auth0_dark_mode.png\" width=\"150\"\u003e\n    \u003cimg alt=\"Auth0 Logo\" src=\"https://cdn.auth0.com/website/sdks/logos/auth0_light_mode.png\" width=\"150\"\u003e\n  \u003c/picture\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eAuth0 is an easy to implement, adaptable authentication and authorization platform.\u003cbr /\u003eTo learn more checkout \u003ca href=\"https://auth0.com/why-auth0\"\u003eWhy Auth0?\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eThis project is licensed under the MIT license. See the \u003ca href=\"./LICENSE.md\"\u003e LICENSE\u003c/a\u003e file for more info.\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauth0%2Fauth0-deploy-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauth0%2Fauth0-deploy-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauth0%2Fauth0-deploy-cli/lists"}