Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secrets does not support wrangler --name argument #203

Open
yuki0410-dev opened this issue Oct 28, 2023 · 2 comments
Open

Secrets does not support wrangler --name argument #203

yuki0410-dev opened this issue Oct 28, 2023 · 2 comments
Labels
enhancement New feature or request triaged

Comments

@yuki0410-dev
Copy link

There are multiple WORKER entry points in my project. (I do not intend to monorepo...)
I deployed the command option in cloudflare/wrangler-action@v3 with --name and entry points. (I did not write name and main to share wrangler.toml).
However, I got an error where name was not specified in the part where wrangler secret put is executed.

✘ [ERROR] Required Worker name missing. Please specify the Worker name in wrangler.toml, or pass it as an argument with `--name <worker-name>`

I would like to see nameoption formally supported instead of writing it in command.

@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Oct 28, 2023
@admah admah added the enhancement New feature or request label Oct 30, 2023
@1000hz 1000hz moved this from Untriaged to Backlog in workers-sdk Jan 4, 2024
@tmclaugh
Copy link

tmclaugh commented Jan 8, 2024

Ran into this issue as well. We use --name on our deploys to support feature branch deployments without requiring the addition of an environment to the toml file. When we started using secrets it resulted in the wrong function being updated. To workaround this we now dynamically add the environment as a preCommand step. Would like a cleaner solution.

@carafelix
Copy link

carafelix commented Jun 16, 2024

I would like to see name option formally supported instead of writing it in command.

How would you go about it in the command? I'm running into this same issue

@jahands jahands changed the title support name option Secrets does not support wrangler --name argument Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triaged
Projects
None yet
Development

No branches or pull requests

5 participants