cloudflare / cloudflare/managed-component-to-cloudflare-worker

Non interactive mode

Open
#31 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.