← 返回
未分类

sher

Build and deploy frontend projects to instant preview URLs. Auto-detects frameworks.
将前端项目构建并部署到即时预览链接,自动检测框架。
ivancernja
未分类 clawhub v1.0.0 1 版本 99386.5 Key: 无需
★ 0
Stars
📥 162
下载
💾 0
安装
1
版本
#cli#deploy#frontend#latest#preview

概述

sher — deploy to a live preview URL

sher is a CLI that builds your frontend project, uploads it, and returns a live preview URL.

Use it when the user wants to see a frontend project live.

Install

Global (recommended for agents):

npm i -g shersh

Or one-off with npx:

npx shersh link

Deploy

From the project root:

sher link

sher auto-detects the framework, runs the build, uploads the output, and returns a URL.

Options

FlagDescription
-------------------
--dir Upload a specific directory (skips framework detection)
--ttl Set link expiry in hours (default: 24)
--no-buildSkip the build step (use if already built)
--pass [password]Password-protect the preview (Pro only)

Examples

sher link                  # standard deploy
sher link --no-build       # already built
sher link --dir ./dist     # specific output directory
sher link --ttl 2          # 2-hour link

Parsing the output

The CLI prints the live URL to stdout:

  https://a8xk2m1p.sher.sh  (copied)
  expires 2/19/2026, 11:00 AM

The URL matches https://[a-z0-9]{8}.sher.sh and is copied to the clipboard.

After deploying

Present the URL to the user:

> Your preview is live at https://a8xk2m1p.sher.sh

Mention expiry if --ttl was set, and share the password if --pass was used.

Supported frameworks

sher auto-detects and builds:

  • Vitedist/
  • Next.js → static export to out/
  • Astrodist/
  • Create React Appbuild/
  • Any project with a build script producing dist/, build/, or out/
  • Static HTML — use --dir . to upload directly

Agent-friendly

  • Runs headless, with exit code 0 on success
  • Works without an account (1 deploy, 10MB, 6h TTL)
  • Authenticated: 25 deploys, 50MB, 24h TTL

Troubleshooting

If sher link fails:

  1. Missing build script — add one to package.json, or use --dir
  2. Build error — fix the error first, then retry
  3. Size limit — 10MB anonymous, 50MB authenticated, 100MB Pro
  4. Missing output directory — ensure the build produces dist/, build/, or out/, or use --dir

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-20 06:07 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,062 📥 800,050
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,219 📥 266,870
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,533