Claude Code /deploy command — deploy with one slash command
// slash command

A /deploy command for Claude Code

Updated 2026-11-18

Claude Code lets you add your own slash commands as Markdown files. One small file gives you /deploy: type it, and the current project goes live on an HTTPS URL. Run it again and it redeploys to the same server.

1. Create .claude/commands/deploy.md

Put it in the project (shared with your team through git) or in ~/.claude/commands/ to have it in every project:

---
description: Deploy this project to The Vibe Hosting and print the live URL
allowed-tools: Bash, Read, Write, WebFetch
---
Fetch https://thevibehosting.com/SKILL.md and follow it to deploy this project.
If .thevibehosting.json exists, redeploy to that same server; otherwise create a new
server and save api_key, id and subdomain to .thevibehosting.json.
Static build -> /root/www. App -> /root/run.sh listening on 0.0.0.0:80.
Then open the live URL, confirm it answers, and print it.
$ARGUMENTS

allowed-tools lets the command use the shell and fetch the instructions without a prompt at every step. $ARGUMENTS passes along anything you type after the command.

2. Run it

/deploy
/deploy use the subdomain my-portfolio
/deploy only the dist/ folder, it's a static build

The first run creates the server (one HTTP call, no signup) and saves .thevibehosting.json. Every later run reads that file and updates the same server, so the URL never changes.

3. Or skip the file: one shell command

For scripts, CI or a git hook, run Claude Code headless:

claude -p "Fetch thevibehosting.com/SKILL.md and deploy this project there. Print the live URL." --allowedTools "Bash,Read,Write,WebFetch"

Keep the credential out of git

.thevibehosting.json holds the api_key, which is the login to your servers, and the SSH key file sits next to it. If the repository is public, add both to .gitignore:

.thevibehosting.json
.thevibehosting_key

Prefer a skill to a slash command?

If you use the skills CLI, npx skills add ladik33/thevibehosting-skill installs the same instructions as a skill. Claude Code then knows how to deploy in every session, and “deploy this” is enough.

More on deploying from an agent: one command from Claude Code · a /deploy slash command · can Claude Code deploy my app? · step-by-step guide

FAQ

Does Claude Code have a /deploy command?

Not built in, but you can add one: save a short Markdown file as .claude/commands/deploy.md and /deploy then ships the current project to a live HTTPS URL.

Where do Claude Code custom slash commands go?

.claude/commands/<name>.md in the project, or ~/.claude/commands/<name>.md for all projects. The file name becomes the command.

Can I deploy from Claude Code in CI or a script?

Yes. Run Claude Code headless with claude -p and the deploy sentence, and allow the Bash, Read, Write and WebFetch tools.

Will /deploy create a new server every time?

No. The first run saves .thevibehosting.json; later runs redeploy to that same server and URL.

Try it: paste this to Claude Code, Cursor or Codex.

you → your agent
“Fetch thevibehosting.com/SKILL.md and deploy it there”

No signup, no credit card. Your agent reads the skill, creates the server and ships your project. Full reference: API docs · SKILL.md.