Deploy a worker via HTTP api?

Hi all,
i’ve successfully create/updated workers pragmatically via http POST request shown here

But those show up as scripts that are not yet deployed. You can see a URL next to the worker if its deployed.

How can i also deploy them programatically? is there an api for it?

So, I thought I had the answer for you, as I went down the Makefile / bash script deployment route a while ago. Unfortunately, I only use the workers/script/$scriptname endpoint with the metadata.json automagically configuring the KV stores to attach. There might be some additional configuration options in metadata.json, but I’ve not used it yet.

Probably not much help, and I can’t seem to find the API docs that specify the metadata format right now. :frowning:

Sorry I couldn’t be more help

1 Like

Thanks for trying though,
its surprising to me that they didn’t do this, i mean the only reason i tried this platform was the simplicity of writing piece of javascript and getting it deployed running.

I’m sure they will add it in future.
My usecase is to deploy customer submitted potentially malicious javascript in a sandbox environment not in my backend…
I’m gonna try to use these v8 workers myself lets see if its easy enough