• Exposes a CLI for creating a new worker, in development or production mode.

    Parameters

    Returns void

    Example

    if (process.argv[1] === fileURLToPath(import.meta.url)) {
    cli.runApp(new WorkerOptions({ agent: import.meta.filename }));
    }