一键导入
sher-deploy
Deploy frontend projects to instant preview URLs using sher. After building a project, run sher link to get a live, shareable URL in seconds.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deploy frontend projects to instant preview URLs using sher. After building a project, run sher link to get a live, shareable URL in seconds.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | sher-deploy |
| description | Deploy frontend projects to instant preview URLs using sher. After building a project, run sher link to get a live, shareable URL in seconds. |
sher is a CLI that builds your frontend project, uploads it, and returns a live preview URL. One command. No accounts. No config.
Use it after you've built or scaffolded a frontend project and the user wants to see it live.
Global (recommended for agents):
npm i -g shersh
Or one-off with npx:
npx shersh link
From the project root:
sher link
That's it. sher auto-detects the framework, runs the build, uploads the output, and returns a URL.
| Flag | Description |
|---|---|
--dir <path> | Upload a specific directory (skips framework detection) |
--ttl <hours> | Set link expiry in hours (default: 24) |
--no-build | Skip the build step (use if already built) |
--pass [password] | Password-protect the preview (Pro only) |
# Standard deploy
sher link
# Deploy a pre-built project
sher link --no-build
# Deploy a specific output directory
sher link --dir ./dist
# Short-lived link (2 hours)
sher link --ttl 2
The CLI prints the live URL to stdout in this format:
https://a8xk2m1p.sher.sh (copied)
expires 2/19/2026, 11:00 AM
The URL always matches the pattern https://[a-z0-9]{8}.sher.sh. Extract it with:
https://[a-z0-9]{8}\.sher\.sh
The URL is also automatically copied to the clipboard.
Present the URL to the user:
Your preview is live at https://a8xk2m1p.sher.sh
If you set a --ttl, mention when it expires. If using --pass, share the password too.
sher auto-detects and builds:
dist/out/dist/build/dist/, build/, or out/--dir . to upload directlyIf sher link fails:
build script in package.json, or use --dir to point to pre-built outputdist/, build/, or out/, or specify --dir