Deploy

Deploying means putting a project on a server so other people can use it, for example uploading a website to the internet at a public address. It usually includes building the project, copying it to the server and checking that it starts. Claude Code can run deploy commands for you, but it's wise to keep the decision to start them in your hands.

Publishing the project so others can use it, for example putting a website on the internet.

You’ll also find it as: deploys, deployment

How it shows up in Claude Code

In the course's first lab, Claude publishes a café's website on Vercel with the command npx --yes vercel deploy --prod --yes. Claude asks your permission before running the command, you approve, and at the end you get a public link ending in .vercel.app.

Because a deploy changes what other people see, the Claude Code documentation uses it as the example of an action you don't want Claude starting on its own: “You don't want Claude deciding to deploy because your code looks ready.” The fix is a /deploy skill with disable-model-invocation: true in its header. The skill then runs only when you call it, and if Claude tries anyway, Claude Code blocks the call.

Example

A deploy skill, in .claude/skills/deploy/SKILL.md:

---
name: deploy
description: Deploy the site to production
disable-model-invocation: true
---
1. Run the tests.
2. Build the project.
3. Deploy and check the link.

When you're ready, you type /deploy.

Common mistakes

  • Deploying without checking the project locally first. A rushed deploy puts a mistake in front of everyone.
  • Leaving automatic approvals on for deploy commands. Irreversible actions deserve a confirmation from you.
  • Putting passwords straight into the code so it “works” online. They belong in the hosting service's settings, as environment variables.
  • Forgetting to open the public link at the end, from your phone or a private window.

Related terms and where you learn it

A deploy usually follows a build and a test. A controlled deploy is done with a skill, and automating it is a job for CI.

You do your first deploy in the lab “Your first website, from message to link”, after module 01 · How to talk to Claude, and you see the deploy skill in module 05 · Skills: reusable recipes.

Source: Claude Code documentation: Skills

How it appears in the course

With disable-model-invocation: true. It’s good for irreversible actions, like deploys or deletions: that way Claude can’t start them on its own initiative.

For the curious · Module 05, Skills: reusable recipes

Learn Claude Code from zero, in plain English

12 modules with 1–2 minute lessons, which you can also do on your phone. The first two modules are free.