Skip to content
Cloudflare Docs

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

      import { WranglerCLI } from "~/components";

      Usage

      Terminal window
      npx 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",
      }}
      />

      Arguments

      • command string required

        • The name of the command, i.e d1 execute.
      • positionals string[]

        • Any positional argument values, i.e {["src/index.mjs]}" for the optional [SCRIPT] positional argument on deploy.
      • flags Record<string, any>

        • Any named argument values, i.e name: "my-worker" for the optional name argument on deploy.
      • showArgs boolean default (false)