Skip to content

Add setup command for Auth0 quickstart applications#1428

Merged
ramya18101 merged 4 commits intomainfrom
DXCDT-1253-support-quickstart-setup-command
Feb 10, 2026
Merged

Add setup command for Auth0 quickstart applications#1428
ramya18101 merged 4 commits intomainfrom
DXCDT-1253-support-quickstart-setup-command

Conversation

@ramya18101
Copy link
Contributor

@ramya18101 ramya18101 commented Feb 9, 2026

🔧 Changes

Added a new auth0 quickstarts setup command that automates the creation of Auth0 applications and environment configuration for quickstart projects.

New Command:

  • auth0 quickstarts setup --type <type> (alias: auth0 qs setup)

Command Behavior:

  1. Creates an Auth0 application based on the specified type
  2. Generates a .env file with appropriate environment variables

Supported Application Types:

Type Auth0 App Type Port Output File Variables
vite SPA 5173 .env VITE_AUTH0_DOMAIN, VITE_AUTH0_CLIENT_ID
nextjs Regular Web App 3000 .env.local AUTH0_DOMAIN, AUTH0_CLIENT_ID, AUTH0_CLIENT_SECRET, AUTH0_SECRET, APP_BASE_URL

Flags:

  • --type, -t: Application type (required) - vite or nextjs
  • --name, -n: Application name (default: "My App")
  • --port, -p: Port number (default: 5173 for vite, 3000 for nextjs)

@ramya18101 ramya18101 force-pushed the DXCDT-1253-support-quickstart-setup-command branch from bd5a2fb to 522d5f8 Compare February 9, 2026 06:21
kushalshit27
kushalshit27 previously approved these changes Feb 9, 2026
Copy link
Contributor

@kushalshit27 kushalshit27 left a comment

Choose a reason for hiding this comment

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

LGTM

@ramya18101 ramya18101 marked this pull request as ready for review February 9, 2026 12:14
@ramya18101 ramya18101 requested a review from a team as a code owner February 9, 2026 12:14
Copy link
Contributor

@brth31 brth31 left a comment

Choose a reason for hiding this comment

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

General Feedback:

  • Add validation checks for type param. It currently accepts any value and fails during app creation.
  • Add a confirmation before overwriting existing .env files. We don't want developers to accidentally lose their secrets due to an overwrite.
  • Add a validation check for port number input. Ports can only be between 1024 and 65535
  • Nitpick: Enhance the success message to show a more elegant text and next steps to run the app

Copy link

@tanya732 tanya732 left a comment

Choose a reason for hiding this comment

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

LGTM

@ramya18101 ramya18101 merged commit 445949f into main Feb 10, 2026
6 checks passed
@ramya18101 ramya18101 deleted the DXCDT-1253-support-quickstart-setup-command branch February 10, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants