Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Direct Uploads

A multi-step workflow for programmatically uploading and deploying static assets to Cloudflare Workers using the Workers API, involving manifest registration, file uploading, and script version deployment.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Direct Uploads

A multi-step workflow for programmatically uploading and deploying static assets to Cloudflare Workers using the Workers API, involving manifest registration, file uploading, and script version deployment.

When To Use

Use when you need to build a programmatic integration to automate the uploading and deployment of static assets to a Worker via API instead of using the Wrangler CLI.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-static-assets-direct-upload-uploads-workflow-guide.mdA guide explaining how to programmatically upload static assets to Cloudflare Workers using APIs.Questions about a guide explaining how to programmatically upload static assets to Cloudflare Workers using APIs.
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-assets-up.textA curl command demonstrating how to initiate a Workers static assets upload session via the Cloudflare API.Exact payloads, commands, or snippets shown in A curl command demonstrating how to initiate a Workers static assets upload session via the Cloudflare API.
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-static-as.textA curl command demonstrating how to initiate an assets upload session via the Cloudflare Workers API.Exact payloads, commands, or snippets shown in A curl command demonstrating how to initiate an assets upload session via the Cloudflare Workers API.
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-direct-up.textA JSON object representing the successful response from a Cloudflare Workers direct upload operation containing JWT and bucket information.Exact payloads, commands, or snippets shown in A JSON object representing the successful response from a Cloudflare Workers direct upload operation containing JWT a...
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-static-as-2.textA wrangler.toml configuration file defining the main module and static assets settings for Workers direct uploads.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file defining the main module and static assets settings for Workers direct uploads.
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-static-as-3.textA wrangler.toml configuration file demonstrating the main module and asset retention settings for Workers direct uploads.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file demonstrating the main module and asset retention settings for Workers direct uplo...
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-static-as-4.textA wrangler.toml configuration file demonstrating the setup for Workers static assets direct uploads.Exact payloads, commands, or snippets shown in A wrangler.toml configuration file demonstrating the setup for Workers static assets direct uploads.
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-static-as-5.textA configuration object defining the main module, asset bindings, and compatibility date for Workers static assets direct uploads.Exact payloads, commands, or snippets shown in A configuration object defining the main module, asset bindings, and compatibility date for Workers static assets dir...
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-static-as-6.textA shell script example demonstrating how to upload static assets and deploy a Worker using the Cloudflare Workers direct upload method.Exact payloads, commands, or snippets shown in A shell script example demonstrating how to upload static assets and deploy a Worker using the Cloudflare Workers dir...
examples/workers-static-assets-direct-upload-uploads-cloudflare-workers-static-as-7.textA shell script example demonstrating how to upload static assets and deploy a Worker using the Cloudflare Workers direct upload method.Exact payloads, commands, or snippets shown in A shell script example demonstrating how to upload static assets and deploy a Worker using the Cloudflare Workers dir...

What This Skill Covers

  • Directly uploading assets via APIs is an advanced approach which, unless you are building a programmatic integration, most users will not need. Instead, we e...
  • Main sections: Upload manifest, Limitations, Upload Static Assets, Create/Deploy New Version, Programmatic Example.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/static-assets/direct-upload