mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #104] feat(deploy): forward unknown CLI flags to wrangler deploy #312
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#312
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/104
Author: @dragonkhoi
Created: 2/26/2026
Status: 🔄 Open
Base:
main← Head:feat/deploy-passthrough-args📝 Commits (2)
4fd2c82feat(deploy): forward unknown CLI flags to wrangler deploy5186edbfix: narrow parseArgs value types for strict:false compatibility📊 Changes
3 files changed (+88 additions, -15 deletions)
View changed files
📝
packages/vinext/src/cli.ts(+1 -0)📝
packages/vinext/src/deploy.ts(+48 -13)📝
tests/deploy.test.ts(+39 -2)📄 Description
Summary
--keep-vars,--config) throughvinext deploywithout vinext needing to explicitly define each oneparseDeployArgsfromstrict: truetostrict: falsewith token-based collection of unknown flags and positionalswrangler deploycommand after vinext's own--envflagDesign note
Positional arguments are intentionally forwarded to wrangler alongside unknown flags. This gives users full passthrough capability (e.g.
vinext deploy -- --keep-vars --config=custom.toml). Sincewrangler deploydoes not accept meaningful positionals, stray positionals will surface as wrangler errors rather than being silently swallowed.Test plan
--keep-vars) collected as passthrough--config my-wrangler.toml) collected correctly--config=my-wrangler.toml) reconstructed correctly--envin wrangler command🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.