WranglerCommand
WranglerCommand is used 0 times on 0 pages.
Pages which use WranglerCommand
Used 0 times.
Pages
Partials
The WranglerCommand component documents the available options for a given command.
import { WranglerCommand } from "~/components";Execute a command or SQL file
npx wrangler d1 execute [DATABASE]pnpm wrangler d1 execute [DATABASE]yarn wrangler d1 execute [DATABASE]-
databasestring requiredThe name or binding of the DB
-
yesbooleanAnswer "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="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