cloudflare / cloudflare/managed-component-to-cloudflare-worker
Non interactive mode
- Dominant language
- TypeScript
- Stars
- 26
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
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:
```bash
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:
```bash
npx managed-component-to-cloudflare-worker ./dist/component.js myworker --yes --no-kv
```
Thanks
Contributor guide
Assessment
This issue has not been assessed yet.