词元之母TOK.MOM - 平台充值汇率 1:1 即 1 人民币充值到账 1 美元,支持一个 Key 调用近 600+ 海内外模型,限时特价模型低至 1 折,欢迎上岸!
| 来源 | 可选 — 通过 hermes skills install official/productivity/here-now 安装 |
| 路径 | optional-skills/productivity/here-now |
| 版本 | 1.15.3 |
| 作者 | here.now |
| 许可证 | MIT |
| 平台 | macos, linux |
| 标签 | here.now, herenow, publish, deploy, hosting, static-site, web, share, URL, drive, storage |
{slug}.here.now 发布网站和文件。curl、file、jq$HERENOW_API_KEY$HERENOW_DRIVE_TOKEN~/.herenow/credentials${HERMES_SKILL_DIR}/scripts/publish.sh 用于发布站点${HERMES_SKILL_DIR}/scripts/drive.sh 用于私有 Drive 存储https://bright-canvas-a7k2.here.now/)。index.html 放在发布目录的根目录下,而非子目录中。目录内容将成为站点根目录。例如,发布 my-site/,其中存在 my-site/index.html — 不要发布包含 my-site/ 的父目录。.herenow/state.json 加载 claimToken。传入 --claim-token {token} 可覆盖此值。My Drive 的默认 Drive。herenow_drive 共享块,将其 token 作为 Authorization: Bearer <token> 用于 api_base,存在 pathPrefix 时须遵守,写入时保留 ETag。pathPrefix 为 null 表示完整 Drive 访问权限。如果 skill 可用,优先使用 drive.sh;否则直接调用列出的 API 操作。--api-key {key} 标志(仅用于 CI/脚本场景 — 交互式使用时请避免)$HERENOW_API_KEY 环境变量~/.herenow/credentials 文件(推荐 agent 使用)--api-key)传递 key;凭据文件是首选存储方式。~/.herenow/credentials、.herenow/state.json)提交到源代码控制。apiKey(不要让用户操作):.herenow/state.json:{
"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"
}
}
}.herenow/state.json 视为内部缓存。siteUrl。publish_result.* 行以确定认证模式。publish_result.auth_mode=authenticated 时:告知用户站点是永久的,已保存到其账户。无需 claim URL。publish_result.auth_mode=anonymous 时:告知用户站点将在 24 小时后过期。分享 claim URL(如果 publish_result.claim_url 非空且以 https:// 开头),以便用户永久保留。提醒用户 claim token 仅返回一次,无法找回。.herenow/state.json 以获取 claim URL 或认证状态。pathPrefix 和短 TTL 的有范围 token。| 标志 | 说明 |
|---|---|
--slug {slug} | 更新已有站点而非创建新站点 |
--claim-token {token} | 覆盖匿名更新的 claim token |
--title {text} | 预览器标题(非 HTML 站点) |
--description {text} | 预览器描述 |
--ttl {seconds} | 设置过期时间(仅限已认证用户) |
--client {name} | 用于归因的 agent 名称(如 hermes) |
--base-url {url} | API 基础 URL(默认:https://here.now) |
--allow-nonherenow-base-url | 允许向非默认 --base-url 发送认证信息 |
--api-key {key} | API key 覆盖(优先使用凭据文件) |
--spa | 启用 SPA 路由(对未知路径返回 index.html) |
--forkable | 允许他人分叉此站点 |
drive.sh 或 Drive API。对于更广泛的账户和站点管理 — 删除、元数据、密码、付款、域名、句柄、链接、变量、代理路由、分叉、复制等 — 请参阅当前文档: