-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
What versions & operating system are you using?
Introduced in wrangler 4.58.0
Please provide a link to a minimal reproduction
n/a see below for easy repro
Describe the Bug
In wrangler 4.57.0 if you run npx wrangler types --incorrect-arg you get the help output for wrangler types
expected output
✘ [ERROR] Unknown argument: fake
wrangler types [path]
📝 Generate types from your Worker configuration
POSITIONALS
path The path to the declaration file for the generated types [string] [default: "worker-configuration.d.ts"]
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
--cwd Run as if Wrangler was started in the specified directory instead of the current working directory [string]
-e, --env Environment to use for operations, and for selecting .env and .dev.vars files [string]
--env-file Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files [array]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
OPTIONS
--env-interface The name of the generated environment interface [string] [default: "Env"]
--include-runtime Include runtime types in the generated types [boolean] [default: true]
--include-env Include Env types in the generated types [boolean] [default: true]
--strict-vars Generate literal and union types for variables [boolean] [default: true]
from wrangler 4.58.0 onwards, we get the generic help instead of the command specific one:
wrong output
✘ [ERROR] Unknown argument: fake
wrangler
COMMANDS
wrangler docs [search..] 📚 Open Wrangler's command documentation in your browser
ACCOUNT
wrangler auth 🔐 Manage authentication
wrangler login 🔓 Login to Cloudflare
wrangler logout 🚪 Logout from Cloudflare
wrangler whoami 🕵️ Retrieve your user information
COMPUTE & AI
wrangler ai 🤖 Manage AI models
wrangler containers 📦 Manage Containers [open beta]
wrangler delete [script] 🗑️ Delete a Worker from Cloudflare
wrangler deploy [script] 🆙 Deploy a Worker to Cloudflare
wrangler deployments 🚢 List and view the current and past deployments for your Worker
wrangler dev [script] 👂 Start a local server for developing your Worker
wrangler dispatch-namespace 🏗️ Manage dispatch namespaces
wrangler init [name] 📥 Initialize a basic Worker
wrangler pages ⚡️ Configure Cloudflare Pages
wrangler pubsub 📮 Manage Pub/Sub brokers [private beta]
wrangler queues 📬 Manage Workers Queues
wrangler rollback [version-id] 🔙 Rollback a deployment for a Worker
wrangler secret 🤫 Generate a secret that can be referenced in a Worker
wrangler setup 🪄 Setup a project to work on Cloudflare [experimental]
wrangler tail [worker] 🦚 Start a log tailing session for a Worker
wrangler triggers 🎯 Updates the triggers of your current deployment [experimental]
wrangler types [path] 📝 Generate types from your Worker configuration
wrangler versions 🫧 List, view, upload and deploy Versions of your Worker to Cloudflare
wrangler vpc 🌐 Manage VPC [open beta]
wrangler workflows 🔁 Manage Workflows
STORAGE & DATABASES
wrangler d1 🗄️ Manage Workers D1 databases
wrangler hyperdrive 🚀 Manage Hyperdrive databases
wrangler kv 🗂️ Manage Workers KV Namespaces
wrangler pipelines 🚰 Manage Cloudflare Pipelines [open beta]
wrangler r2 📦 Manage R2 buckets & objects
wrangler secrets-store 🔐 Manage the Secrets Store [open beta]
wrangler vectorize 🧮 Manage Vectorize indexes
NETWORKING & SECURITY
wrangler cert 🪪 Manage client mTLS certificates and CA certificate chains used for secured connections [open beta]
wrangler mtls-certificate 🪪 Manage certificates used for mTLS connections
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
--cwd Run as if Wrangler was started in the specified directory instead of the current working directory [string]
-e, --env Environment to use for operations, and for selecting .env and .dev.vars files [string]
--env-file Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files [array]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Please provide any relevant error logs
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status