WranglerCommand
WranglerCommand is used 16 times on 2 pages.
Pages which use WranglerCommand
Used 16 times.
Pages
Partials
The WranglerCommand component documents the available options for a given command.
This is generated using the Wrangler version in the cloudflare-docs repository ↗.
import { WranglerCommand } from "~/components";npx wrangler deploy [SCRIPT]pnpm wrangler deploy [SCRIPT]yarn wrangler deploy [SCRIPT]-
[SCRIPT]stringThe path to an entry point for your Worker
-
--namestringName of the Worker
-
--no-bundleboolean default: falseSkip internal build steps and directly deploy Worker
-
--outdirstringOutput directory for the bundled Worker
-
--outfilestringOutput file for the bundled worker
-
--compatibility-datestringDate to use for compatibility checks
-
--compatibility-flagsstring alias: --compatibility-flagFlags to use for compatibility checks
-
--latestboolean default: falseUse the latest version of the Workers runtime
-
--assetsstringStatic assets to be served. Replaces Workers Sites.
-
--varstringA key-value pair to be injected into the script as a variable
-
--definestringA key-value pair to be substituted in the script
-
--aliasstringA module pair to be substituted in the script
-
--triggersstring aliases: --schedule, --schedulescron schedules to attach
-
--routesstring alias: --routeRoutes to upload
-
--domainsstring alias: --domainCustom domains to deploy to
-
--jsx-factorystringThe function that is called for each JSX element
-
--jsx-fragmentstringThe function that is called for each JSX fragment
-
--tsconfigstringPath to a custom tsconfig.json file
-
--minifybooleanMinify the Worker
-
--dry-runbooleanDon't actually deploy
-
--metafilestringPath to output build metadata from esbuild. If flag is used without a path, defaults to 'bundle-meta.json' inside the directory specified by --outdir.
-
--keep-varsboolean default: falseWhen not used (or set to false), Wrangler will delete all vars before setting those found in the Wrangler configuration. When used (and set to true), the environment variables are not deleted before the deployment. If you set variables via the dashboard you probably want to use this flag. Note that secrets are never deleted by deployments.
-
--logpushbooleanSend Trace Events from this Worker to Workers Logpush. This will not configure a corresponding Logpush job automatically.
-
--upload-source-mapsbooleanInclude source maps when uploading this Worker.
-
--old-asset-ttlnumberExpire old assets in given seconds rather than immediate deletion.
-
--dispatch-namespacestringName of a dispatch namespace to deploy the Worker to (Workers for Platforms)
npx wrangler d1 execute [DATABASE]pnpm wrangler d1 execute [DATABASE]yarn wrangler d1 execute [DATABASE]-
[DATABASE]string requiredThe name or binding of the DB
-
--yesboolean alias: --yAnswer "yes" to any prompts
-
--localbooleanExecute commands/files against a local DB for use with wrangler dev
-
--remotebooleanExecute commands/files against a remote DB for use with wrangler dev
-
--filestringA .sql file to ingest
-
--commandstringA single SQL statement to execute
-
--persist-tostringSpecify directory to use for local persistence (for --local)
-
--jsonboolean default: falseReturn output as clean JSON
-
--previewboolean default: falseExecute commands/files against a preview D1 DB
import { WranglerCommand } from "~/components";
<WranglerCommand command="deploy" />
<WranglerCommand command="d1 execute" />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