Auth0-deploy-cli as Node Module not Working as Expected

Problem statement

The library Auth0-deploy-cli does not work when used as a Node Module and returns with very little to no response back to the CLI.


For example, if the following code is run:

import { dump } from 'auth0-deploy-cli';

  output_folder: './local',
  format: 'yaml',
  config: {
    debug: true,
    env: true
  .then(() => {
    console.log('Auth0 configuration export successful');
  .catch((err) => {
    console.log('Error during Auth0 configuration export:', err);

The returned data shows either nothing or:

2024-01-22T12:41:05.132Z - info: Creating undefined


The returned data is vague, which makes it difficult to diagnose specifics.


The most likely cause is an old version of either the “auth0-deploy-cli” tool or an old version of Node installed locally.


  1. Ensure the latest version of “auth0-deploy-cli” is installed for the project (run in the project directory):

    npm install -g auth0-deploy-cli

  2. Additionally, check the latest stable version of Node is installed locally:

  • Using MacOS/Brew:
    brew install node

    or to update
    brew upgrade node

  • For other platforms, check the Node install page: Node.js — Download

  1. Using the “auth0-deploy-cli” as a Node module with the proxy functionality:

This is a reported bug that is currently being addressed here.