Deploy HTML

Deploy a single HTML file or a directory containing an index.html. Perfect for Claude Code artifacts, prototypes, and quick demos.

Single File

Use the --html flag to deploy any standalone HTML file.

Terminal

$ leash deploy --html artifact.html

✓ Deployed static site

→ https://artifact-arvin.un.leash.build

Directory with index.html

If your directory contains an index.html, Leash auto-detects it as a static site. No flags needed.

Terminal

$ cd my-static-site

$ leash deploy

✓ Detected static site

✓ Deployed successfully!

→ https://my-static-site-arvin.un.leash.build

Example

A minimal HTML file is all you need to get a live site:

index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My App</title>
</head>
<body>
<h1>Hello from Leash!</h1>
</body>
</html>

Tip: AI-generated artifacts

When Claude Code, ChatGPT Canvas, or any AI tool generates an HTML artifact, save it to a file and deploy it in one command. Great for sharing interactive visualizations, dashboards, and prototypes with teammates.