Skip to main content

clerk deploy: guided, resumable, agent-ready

Category
Product
Published

clerk deploy takes your application live with a single command, cloning your development instance to production and walking you through DNS and OAuth setup.

When we released the CLI, we said we were hard at work on deploy. It's ready for you to use today: clerk deploy is now available in the Clerk CLI, taking your application from development to production with a single command.

A clerk deploy session showing the plan and production domain prompt

Run clerk deploy from a linked project and the CLI walks you through everything production needs:

  • Production instance: Creates a production instance from your development configuration and prompts for your production domain

  • DNS records: Displays the CNAME records to add at your DNS provider, and can export them as a DNS zone file you can import at any compatible provider

  • OAuth credentials: Detects the social connections enabled in development and prompts for production Google and Apple credentials, including importing a Google Cloud Console JSON file or pointing at your Apple .p8 key. Other providers are flagged for setup in the Clerk Dashboard

  • Verification: Checks DNS, SSL, and email DNS in one loop and reports exactly what's still pending

Built for agents

In a non-TTY context, or with --mode agent, clerk deploy emits a read-only JSON handoff describing the current deploy state instead of prompting.

clerk deploy status --mode agent

Get started

Update to the latest CLI, link your project if you haven't already, and deploy:

clerk update
clerk link
clerk deploy

Read the full documentation for all commands and options.

Contributors
Rafael Thayto
Wyatt Johnson

Share this article