Loading...
Loading...
Use for public file uploading: when a screenshot, GIF, or video has to be embedded in a PR, issue, doc, or message.
npx skill4agent add mark-life/agent-skills media-cdnscripts/cdn.tsscripts/bun cdn.ts upload ~/Downloads/diagram.png --public| Command | What it does |
|---|---|
| Reserve, PUT bytes, mark ready, then publish when |
| Every asset in the workspace, filtered client-side. |
| One asset, with its public URL when published. |
| Turn the public CDN URL on or off. Reversible either way. |
| Writes the bytes to |
| Workspace id, token name, scopes — run this first when a call fails with 401 or 403. |
<ref>MEDIA_CDN_API_URLMEDIA_CDN_API_KEY~/.agents/.env.local--env <path>error: MEDIA_CDN_API_URL and MEDIA_CDN_API_KEY must be set …cut -f<id>\t<public-url or ->\t<filename> # upload, get, publish, unpublish
<id>\t<public-url or ->\t<filename>\t<bytes>\t<folder> # listerror: <message> (<code>)--jsonmimeTypeversionIdcreatedAt--publicdelete <ref>unpublishcurl -sS -o /dev/null -w '%{http_code}' "<url>"Authorization200