Exposes a CLI for creating a new worker, in development or production mode.
Options to launch the worker with
if (process.argv[1] === fileURLToPath(import.meta.url)) { cli.runApp(new WorkerOptions({ agent: import.meta.filename }));} Copy
if (process.argv[1] === fileURLToPath(import.meta.url)) { cli.runApp(new WorkerOptions({ agent: import.meta.filename }));}
Exposes a CLI for creating a new worker, in development or production mode.