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 언어
영어
스타
591
포크
10

설치 방법

기본적으로 소스를 먼저 확인하는 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에서 보기