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]
-
database
string requiredThe name or binding of the DB
-
yes
booleanAnswer "yes" to any prompts
-
local
booleanExecute commands/files against a local DB for use with wrangler dev
-
remote
booleanExecute commands/files against a remote DB for use with wrangler dev
-
file
stringA .sql file to ingest
-
command
stringA single SQL statement to execute
-
persist-to
stringSpecify directory to use for local persistence (for --local)
-
json
boolean default: falseReturn output as clean JSON
-
preview
boolean 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
-