<!-- AI Website Deployment with CLI and MCP | Demox -->
Source: https://www.demox.site/ai-website-deployment

AI website deployment · Updated 2026-09-14 · Demox team

# Deploy AI-generated websites in seconds

**Direct answer:** Demox publishes websites that an AI coding agent just generated. If the output is one HTML file, upload that file. If the output is a React, Vue, or Vite project, run the production build first, then deploy the dist folder. CLI: npm install -g @demox-site/cli@latest, then demox login and demox deploy ./dist. MCP: npx -y @demox-site/mcp-server@latest inside Claude Code, Cursor, or another MCP client. The agent can read https://www.demox.site/doc and deploy from the local files. Chat-only assistants can write steps; they cannot upload until they have tools.

## How to do it

1. **Step 1.** Ask the agent to produce a static page or a production build.
2. **Step 2.** Confirm index.html is at the root of the folder or ZIP.
3. **Step 3.** Deploy with the web console, demox deploy, or the Demox MCP server.
4. **Step 4.** Share the HTTPS URL. Do not put secrets in frontend files.

## FAQ

### Can the AI deploy for me?

Yes, if it can read local files and run MCP or CLI tools. Paste https://www.demox.site/doc and ask it to deploy.

### Can I upload the source repo?

Usually no. Upload the built dist, a ZIP with index.html at the root, or a single HTML file.

## AI 生成网页后，怎样发布成网站？

产物是单个 HTML 就直接上传。React/Vue/Vite 先构建再发 dist。网页、CLI、MCP 都可以。把文档地址发给能读本地文件并执行工具的 AI 即可。

### 按这个顺序做

1. **01** 让 AI 生成静态页面，或先跑生产构建。
2. **02** 确认文件夹或 ZIP 根目录有 index.html。
3. **03** 用网页端、demox deploy 或 Demox MCP 发布。
4. **04** 分享 HTTPS 地址。不要把密钥写进前端文件。

### 常见问题

### AI 能替我发布吗？

可以，前提是它能读本地文件并执行 MCP 或 CLI。把 https://www.demox.site/doc 发给它，要求部署。

### 源码仓库能直接上传吗？

通常不行。上传构建后的 dist、根目录含 index.html 的 ZIP，或单个 HTML。

## Related Demox pages

- [Free static website hosting with CLI and MCP](https://www.demox.site/free-static-site-hosting)
- [Deploy a website from MCP](https://www.demox.site/mcp-website-deployment)
- [Deploy a static site from the CLI](https://www.demox.site/cli-static-site-deploy)
- [You have an AI-generated page. How do you publish it?](https://www.demox.site/deploy-ai-generated-website)
- [Deploy a website from Claude Code](https://www.demox.site/claude-code-deploy-website)
- [Deploy a website from Cursor](https://www.demox.site/cursor-deploy-website)
- [CLI and MCP docs](https://www.demox.site/doc)
- [When to use Demox](https://www.demox.site/when-to-use-demox)

[Upload and publish](https://www.demox.site/console/projects) · [Read the docs](https://www.demox.site/doc)
