Install
$ npx api2cli install clerkDetails
README
clerk
Setup
npm i -g @clerk/clerk-sdk-node
Or use via npx:
npx @clerk/cli
Resources
Project Setup
| Command | Description |
|---|---|
npx @clerk/cli setup | Initialize Clerk in a project |
npx @clerk/cli env pull | Pull environment variables from Clerk dashboard |
npx @clerk/cli env pull --env-file .env.local | Pull env vars to a specific file |
Development
| Command | Description |
|---|---|
npx @clerk/cli dev | Start development with Clerk |
Environment Variables
After running env pull, the following variables are typically set:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY- Public key for frontendCLERK_SECRET_KEY- Secret key for backendNEXT_PUBLIC_CLERK_SIGN_IN_URL- Sign-in page URLNEXT_PUBLIC_CLERK_SIGN_UP_URL- Sign-up page URL
