auth0 quickstarts setup
Creates an Auth0 application and generates a .env file with the necessary configuration.
The command will:
- Check if you are authenticated (and prompt for login if needed)
- Create an Auth0 application based on the specified type
- 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.
Related Commands
- auth0 quickstarts download - Download a Quickstart sample app for a specific tech stack
- auth0 quickstarts list - List the available Quickstarts
- auth0 quickstarts setup - Set up Auth0 for your quickstart application