← Back to CLIs
Melvynx

clerk

Clerk authentication CLI - set up auth, pull environment variables. Use when user mentions 'clerk', 'clerk auth', or wants to configure Clerk authentication.

Install

$ npx api2cli install clerk

Details

Skill type: Official CLI
Auth type: bearer
Version: 1.0.0
Author: Melvynx
Views: 0

README

clerk

Setup

npm i -g @clerk/clerk-sdk-node

Or use via npx:

npx @clerk/cli

Resources

Project Setup

CommandDescription
npx @clerk/cli setupInitialize Clerk in a project
npx @clerk/cli env pullPull environment variables from Clerk dashboard
npx @clerk/cli env pull --env-file .env.localPull env vars to a specific file

Development

CommandDescription
npx @clerk/cli devStart development with Clerk

Environment Variables

After running env pull, the following variables are typically set:

  • NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY - Public key for frontend
  • CLERK_SECRET_KEY - Secret key for backend
  • NEXT_PUBLIC_CLERK_SIGN_IN_URL - Sign-in page URL
  • NEXT_PUBLIC_CLERK_SIGN_UP_URL - Sign-up page URL
Sponsors