Skip to main content

public-files

Share static files (PDFs, images, zips, build artifacts) as direct, permanent CDN links.

跳到安装

来源信息

仓库
netaart/cohub
最近来源活动
2026年8月25日 17:11
检测到的 SKILL.md 语言
英语
星标
590
分支
9

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
public-files
description
Share static files (PDFs, images, zips, build artifacts) as direct, permanent CDN links.
# Public Files Commands target the current Space by default; add `-s <spaceId>` to use another. ## Publish Upload one file or one directory: ```bash cohub public upload <source> [destination] ``` Examples: ```bash cohub public upload ./report.pdf cohub public upload ./report.pdf reports/latest.pdf cohub public upload ./dist demo ``` Use `--json` for a manifest of every uploaded file (path, size, MIME type) plus the Space URL prefix. Existing files are never replaced implicitly. When replacement is intended, use: ```bash cohub public upload <source> [destination] --overwrite ``` ## Inspect ```bash cohub public ls [path] cohub public ls -r [path] cohub public url <path> ``` ## Behavior notes - Uploads are permanent: there is no delete command yet. Anything uploaded stays publicly accessible. - A URL prefix is not a browsable directory; always link to a specific file. - The CDN caches content for ~5 minutes. After `--overwrite`, the old version may remain visible briefly; query strings do not bypass the cache. ## Safety - Never upload secrets, tokens, private logs, or internal-only files. - Use relative asset paths in static sites. - Use `--overwrite` only when replacing the existing public path is intentional. ## Finish Return the direct public URL when the command provides one.
在 GitHub 查看