Can you invoke a worker by cli?

I want to create a script to seed my DB (it's D1, hence I can't use a Node.js script).

Is there an easy way to invoke a worker (both locally / remote environments)? Or do I need to run the server, await for it to load, and then curl it?

More context:
d1-database
Was this page helpful?