WranglerCLI
WranglerCLI
is used 0
times on 0
pages.
Pages which use WranglerCLI
Used 0 times.
Pages
Partials
The WranglerCLI
component validates your Wrangler command & wraps it in the PackageManagers
component.
This is generated using the Wrangler version in the cloudflare-docs
repository ↗.
import { WranglerCLI } from "~/components";
npx wrangler deploy --name my-worker --containers-rollout immediate src/index.mjs
pnpm wrangler deploy --name my-worker --containers-rollout immediate src/index.mjs
yarn wrangler deploy --name my-worker --containers-rollout immediate src/index.mjs
import { WranglerCLI } from "~/components";
<WranglerCLI command="deploy" positionals={["src/index.mjs"]} flags={{ name: "my-worker", "containers-rollout": "immediate", }}/>
-
command
string required- The name of the command, i.e
d1 execute
.
- The name of the command, i.e
-
positionals
string[]- Any positional argument values, i.e
{["src/index.mjs]}"
for the optional[SCRIPT]
positional argument ondeploy
.
- Any positional argument values, i.e
-
flags
Record<string, any>- Any named argument values, i.e
name: "my-worker"
for the optionalname
argument ondeploy
.
- Any named argument values, i.e
-
showArgs
boolean default (false)- Show the available arguments in a
Details
component below the command.
- Show the available arguments in a
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark
-