Loading...
Loading...
Upload a local HTML file, image, PDF, or directory to Cloudflare Pages and return a token-protected shareable URL on the user's personal cloudshare subdomain (e.g. purple-tiger-42.pages.dev/r/<slug>/?token=<x>). If the user has not yet set up cloudshare, instruct them to run a one-time setup command in their terminal — the setup wizard is interactive and must be run by the user, not the agent. Trigger when the user asks to "share this file", "publish this html", "make a shareable link", "upload to cloudflare", or invokes /cloudshare. Also use when the user wants to list past shares, delete a share, or rotate a share's token.
npx skill4agent add alanho/cloudshare-skills cloudshare/r/<slug>/SHARE_TOKENS_JSON/r/resources/resources/deploy.shresources/list.shresources/delete.shresources/rotate.shresources/lib/{auth,tokens,clipboard}.shresources/template/~/.config/cloudshare/config.envcurl -fsSL https://raw.githubusercontent.com/alanho/cloudshare-skills/main/setup.sh | bashAccount: Cloudflare Pages: EditAccount: Account Settings: Readpurple-tiger-42~/.config/cloudshare/projects/<name>/SHARE_TOKENS_JSON='{}'~/.config/cloudshare/config.env~/.config/cloudshare/config.envcommand -v openssl >/dev/null || { echo "openssl required"; exit 1; }
command -v node >/dev/null || { echo "node required (https://nodejs.org/)"; exit 1; }
command -v curl >/dev/null || { echo "curl required"; exit 1; }wranglernpx wrangler@latestbash <SKILL_DIR>/resources/deploy.sh <absolute-path-to-file-or-dir>~/.config/cloudshare/config.envtrip-options-9f3aSHARE_TOKENS_JSONnpx wrangler@latest pages deployURL: URL: https://<project>.pages.dev/r/<slug>/?token=<hex>~/.config/cloudshare/shares.logbash <SKILL_DIR>/resources/list.sh # list past shares
bash <SKILL_DIR>/resources/delete.sh <slug> # revoke + delete a share
bash <SKILL_DIR>/resources/rotate.sh <slug> # rotate token; old → 401https://purple-tiger-42.pages.dev/r/trip-options-9f3a/?token=4b7c8d2e1a9f1234
✓ Shared `trip-options.html` (copied to clipboard).Referrer-Policy: no-referrerdelete.sh <slug>rotate.sh <slug>SHARE_TOKENS_JSONwrangler pages deployCloudflare Pages: Edit