Skip to content

Non interactive mode #31

@BushidoDigital

Description

@BushidoDigital

I’m attempting to deploy a Managed Component from my GitHub Actions pipeline to Cloudflare.
In CI/CD, I’d like to keep the project clean and simply set the build/deploy command to:

npx managed-component-to-cloudflare-worker ./dist/component.js myworker

However, the CLI currently prompts for confirmation:
Your Cloudflare Worker will be named "custom-mc-myworker".

Enter "y" to deploy with Wrangler:
Because stdin is empty in CI, the job ends up “succeeding” without actually deploying the worker.

Something similar to this would clean up a lot I think:

npx managed-component-to-cloudflare-worker ./dist/component.js myworker --yes --no-kv

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions