Skip to main content Link Menu Expand (external link) Document Search Copy Copied

auth0 quickstarts setup

Creates an Auth0 application and generates a .env file with the necessary configuration.

The command will:

  1. Check if you are authenticated (and prompt for login if needed)
  2. Create an Auth0 application based on the specified type
  3. Generate a .env file with the appropriate environment variables

Supported types:

  • vite: For client-side SPAs (React, Vue, Svelte, etc.)
  • nextjs: For Next.js server-side applications

Usage

auth0 quickstarts setup [flags]

Examples

  auth0 quickstarts setup --type vite
  auth0 quickstarts setup --type nextjs
  auth0 quickstarts setup --type vite --name "My App"
  auth0 quickstarts setup --type nextjs --port 8080
  auth0 qs setup --type vite -n "My App" -p 5173

Flags

      --json          Output in json format.
  -n, --name string   Name of the Auth0 application (defaults to current directory name)
  -p, --port int      Port number for the application (default: 5173 for vite, 3000 for nextjs)
  -t, --type string   Type of quickstart (vite, nextjs)

Inherited Flags

      --debug           Enable debug mode.
      --no-color        Disable colors.
      --no-input        Disable interactivity.
      --tenant string   Specific tenant to use.