<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/clerk-s-new-cli-add-auth-to-next-js-without-leaving-your-terminal-islsqepaf" -->

---
title: Clerk's New CLI: Add Auth to Next.js Without Leaving...
description: A walkthrough of Clerk's new CLI tool that automates authentication setup in Next.js apps without leaving the terminal. The CLI detects the framework, installs...
canonical: https://daily.dev/posts/clerk-s-new-cli-add-auth-to-next-js-without-leaving-your-terminal-islsqepaf
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Clerk's New CLI: Add Auth to Next.js Without Leaving Your Terminal | daily.dev
og:description: A walkthrough of Clerk's new CLI tool that automates authentication setup in Next.js apps without leaving the terminal. The CLI detects the framework, installs...
og:url: https://daily.dev/posts/clerk-s-new-cli-add-auth-to-next-js-without-leaving-your-terminal-islsqepaf
og:image: https://api.daily.dev/og/posts/iSlsQEpaF.png
og:image:alt: Clerk's New CLI: Add Auth to Next.js Without Leaving Your Terminal
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Clerk's New CLI: Add Auth to Next.js Without Leaving Your Terminal

**[Hamed Bahram](https://daily.dev/sources/hamedbahram)** · 18 min read · 0 upvotes · 0 comments

## Summary

A walkthrough of Clerk's new CLI tool that automates authentication setup in Next.js apps without leaving the terminal. The CLI detects the framework, installs the correct SDK, creates a Clerk application, and pulls API keys directly into the project's environment file. It also installs agent skills for AI coding assistants like Claude Code, enabling them to set up webhooks, configure middleware, and create API routes. The demo shows using Claude to scaffold a webhook endpoint and using the CLI's built-in relay tunnel (replacing tools like ngrok) to connect the local dev server to Clerk's dashboard for live webhook testing.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=X9415VqU6RU>

## Similar posts on daily.dev

- [I Built a Claude Code Skill That Turns Any Existing Web App Into a Local Vibe Coding Environment](https://daily.dev/posts/i-built-a-claude-code-skill-that-turns-any-existing-web-app-into-a-local-vibe-coding-environment-gs4kx8e7g) · Medium · 2 upvotes · 0 comments

---

Tags: [#authentication](https://daily.dev/tags/authentication), [#nextjs](https://daily.dev/tags/nextjs), [#claude-code](https://daily.dev/tags/claude-code)

[View this post on daily.dev](https://daily.dev/posts/clerk-s-new-cli-add-auth-to-next-js-without-leaving-your-terminal-islsqepaf)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Clerk's New CLI: Add Auth to Next.js Without Leaving Your Terminal","url":"https://daily.dev/posts/clerk-s-new-cli-add-auth-to-next-js-without-leaving-your-terminal-islsqepaf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/clerk-s-new-cli-add-auth-to-next-js-without-leaving-your-terminal-islsqepaf"},"datePublished":"2026-07-29T16:24:18.026Z","dateModified":"2026-07-29T16:24:35.198Z","description":"A walkthrough of Clerk's new CLI tool that automates authentication setup in Next.js apps without leaving the terminal. The CLI detects the framework, installs...","image":"https://i.ytimg.com/vi/X9415VqU6RU/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/X9415VqU6RU/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Hamed Bahram","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hamed Bahram","logo":"https://media.daily.dev/image/upload/s--nNexgDzu--/f_auto/v1725044283/logos/hamedbahram","url":"https://daily.dev/sources/hamedbahram"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/clerk-s-new-cli-add-auth-to-next-js-without-leaving-your-terminal-islsqepaf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"authentication,nextjs,claude-code","timeRequired":"PT18M","video":{"@type":"VideoObject","name":"Clerk's New CLI: Add Auth to Next.js Without Leaving Your Terminal","description":"A walkthrough of Clerk's new CLI tool that automates authentication setup in Next.js apps without leaving the terminal. The CLI detects the framework, installs...","thumbnailUrl":"https://i.ytimg.com/vi/X9415VqU6RU/sddefault.jpg","uploadDate":"2026-07-29T16:24:18.026Z","duration":"PT18M","url":"https://api.daily.dev/r/iSlsQEpaF","embedUrl":"https://www.youtube.com/embed/X9415VqU6RU"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hamed Bahram","item":"https://daily.dev/sources/hamedbahram"},{"@type":"ListItem","position":3,"name":"Clerk's New CLI: Add Auth to Next.js Without Leaving Your Terminal"}]}
```

