here-now
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesehere.now
here.now
Skill version: 1.2
Publish any file or folder to the web and get a live URL back. Static hosting only.
技能版本:1.2
可将任意文件或文件夹发布至网页,并获取一个在线URL。仅支持静态托管。
Check for updates
检查更新
On first use in a session, check if a newer skill version is available:
bash
curl -s https://here.now/api/skill/versionIf the returned is higher than 1.2, fetch the latest skill before proceeding:
versionbash
curl -s https://here.now/skill.mdLet the user know you're updating to the latest version, then continue with their request.
在会话首次使用时,检查是否有更新的技能版本可用:
bash
curl -s https://here.now/api/skill/version如果返回的高于1.2,请先获取最新技能再继续操作:
versionbash
curl -s https://here.now/skill.md告知用户你正在更新至最新版本,然后继续处理他们的请求。
Publish
发布内容
bash
./scripts/publish.sh <file-or-dir>Outputs the live URL (e.g. ).
https://bright-canvas-a7k2.here.now/Without an API key this creates an anonymous publish that expires in 24 hours.
With or , the publish is permanent.
--api-key$HERENOW_API_KEYbash
./scripts/publish.sh <file-or-dir>输出在线URL(例如 )。
https://bright-canvas-a7k2.here.now/未使用API密钥时,将创建匿名发布,该发布24小时后过期。
使用或设置环境变量时,发布内容将永久保留。
--api-key$HERENOW_API_KEYUpdate an existing publish
更新现有发布内容
bash
./scripts/publish.sh <file-or-dir> --slug <slug>The script auto-loads the from when updating anonymous publishes. Pass to override.
claimToken.herenow/state.json--claim-token <token>Authenticated updates require or .
--api-key$HERENOW_API_KEYbash
./scripts/publish.sh <file-or-dir> --slug <slug>更新匿名发布内容时,脚本会自动从加载。可传入来覆盖该值。
.herenow/state.jsonclaimToken--claim-token <token>认证用户更新发布内容时需使用或设置环境变量。
--api-key$HERENOW_API_KEYState file
状态文件
After every publish, the script writes to in the working directory:
.herenow/state.jsonjson
{
"publishes": {
"bright-canvas-a7k2": {
"siteUrl": "https://bright-canvas-a7k2.here.now/",
"claimToken": "abc123",
"claimUrl": "https://here.now/claim?slug=bright-canvas-a7k2&token=abc123",
"expiresAt": "2026-02-18T01:00:00.000Z"
}
}
}Before publishing, check this file. If the user already has a publish for the same content, update it with instead of creating a new one.
--slug每次发布后,脚本会在工作目录下的中写入内容:
.herenow/state.jsonjson
{
"publishes": {
"bright-canvas-a7k2": {
"siteUrl": "https://bright-canvas-a7k2.here.now/",
"claimToken": "abc123",
"claimUrl": "https://here.now/claim?slug=bright-canvas-a7k2&token=abc123",
"expiresAt": "2026-02-18T01:00:00.000Z"
}
}
}发布前请检查该文件。如果用户已发布过相同内容,请使用参数更新现有发布,而非创建新发布。
--slugWhat to tell the user
需告知用户的信息
- Always share the .
siteUrl - For anonymous publishes, also share the so they can keep it permanently.
claimUrl - Warn: the claim token is only returned once and cannot be recovered.
- 务必分享。
siteUrl - 对于匿名发布,还需分享,以便用户将发布内容永久保留。
claimUrl - 提醒用户:认领令牌仅返回一次,无法找回。
Limits
限制说明
| Anonymous | Authenticated | |
|---|---|---|
| Max file size | 250 MB | 5 GB |
| Expiry | 24 hours | Permanent (or custom TTL) |
| Rate limit | 5 / hour / IP | Unlimited |
| Account needed | No | Yes (get key at here.now) |
| 项目 | 匿名发布 | 认证发布 |
|---|---|---|
| 最大文件大小 | 250 MB | 5 GB |
| 有效期 | 24小时 | 永久(或自定义TTL) |
| 请求频率限制 | 5次/小时/IP | 无限制 |
| 是否需要账号 | 否 | 是(在here.now获取密钥) |
Getting an API key
获取API密钥
To upgrade from anonymous (24h) to permanent publishing:
- Ask the user for their email address.
- Call the sign-up endpoint to send them a magic link:
bash
curl -sS https://here.now/api/auth/login \
-H "content-type: application/json" \
-d '{"email": "user@example.com"}'- Tell the user: "Check your inbox for a sign-in link from here.now. Click it, then copy your API key from the dashboard."
- Once the user provides the key, pass it with or set
--api-key.$HERENOW_API_KEY
如需从匿名发布(24小时有效期)升级为永久发布:
- 向用户索要邮箱地址。
- 调用注册接口为用户发送魔法链接:
bash
curl -sS https://here.now/api/auth/login \
-H "content-type: application/json" \
-d '{"email": "user@example.com"}'- 告知用户:「请查收来自here.now的登录链接邮件。点击链接后,从控制面板复制你的API密钥。」
- 用户提供密钥后,可通过参数传入,或设置环境变量
--api-key。$HERENOW_API_KEY
Script options
脚本选项
| Flag | Description |
|---|---|
| API key (or set |
| Update existing publish instead of creating |
| Override claim token for anonymous updates |
| Viewer title (non-site publishes) |
| Viewer description |
| Set expiry (authenticated only) |
| API base URL (default: |
| 标志位 | 说明 |
|---|---|
| API密钥(或设置环境变量 |
| 更新现有发布内容,而非创建新的发布 |
| 覆盖匿名更新的认领令牌 |
| 查看器标题(非网站发布时使用) |
| 查看器描述 |
| 设置有效期(仅认证用户可用) |
| API基础URL(默认值: |
Beyond the script
脚本之外的操作
For delete, metadata patch, claim, list, and other operations, see references/REFERENCE.md.
Full docs: https://here.now/docs
删除、元数据补丁、认领、列表及其他操作,请查看references/REFERENCE.md。