torte
05/03/2023, 11:13 AMnode
command with a file in your project which has access to the whole context of the project (e.g. databases, env variables etc). A similar approach from other language/frameworks are Django management commands.
The way I imagine this is simply running wrangler dev
and instead of launching a worker service (which essentially runs as an HTTP service) it would execute a worker "script" which runs once and then exits. Is this possible in workers and if so how?torte
05/03/2023, 11:36 AMunstable_dev
name put me a off a little bit though. Is there a chance this might become obsolete in the future?Skye
05/03/2023, 11:40 AMexperimental
part of the optionsSkye
05/03/2023, 11:41 AMwrangler pages dev
has been powered by it for almost a year nowtorte
05/03/2023, 11:43 AMSkye
05/03/2023, 11:45 AMSkye
05/03/2023, 11:46 AMpackages/wrangler/src/api
part of the repo if you want to see all of the options the API takes