WranglerNamespace
WranglerNamespace
is used 0
times on 0
pages.
Pages which use WranglerNamespace
Used 0 times.
Pages
Partials
The WranglerNamespace
component documents the available commands for a given namespace.
This is generated using the Wrangler version in the cloudflare-docs
repository ↗.
import { WranglerNamespace } from "~/components";
npx wrangler d1 list
pnpm wrangler d1 list
yarn wrangler d1 list
-
--json
boolean default: falseReturn output as clean JSON
npx wrangler d1 info [NAME]
pnpm wrangler d1 info [NAME]
yarn wrangler d1 info [NAME]
-
[NAME]
string requiredThe name of the DB
-
--json
boolean default: falseReturn output as clean JSON
npx wrangler d1 insights [NAME]
pnpm wrangler d1 insights [NAME]
yarn wrangler d1 insights [NAME]
-
[NAME]
string requiredThe name of the DB
-
--timePeriod
string default: 1dFetch data from now to the provided time period
-
--sort-type
string default: sumChoose the operation you want to sort insights by
-
--sort-by
string default: timeChoose the field you want to sort insights by
-
--sort-direction
string default: DESCChoose a sort direction
-
--limit
number default: 5fetch insights about the first X queries
-
--json
boolean default: falsereturn output as clean JSON
npx wrangler d1 create [NAME]
pnpm wrangler d1 create [NAME]
yarn wrangler d1 create [NAME]
-
[NAME]
string requiredThe name of the new DB
-
--location
stringA hint for the primary location of the new DB. Options: weur: Western Europe eeur: Eastern Europe apac: Asia Pacific oc: Oceania wnam: Western North America enam: Eastern North America
npx wrangler d1 delete [NAME]
pnpm wrangler d1 delete [NAME]
yarn wrangler d1 delete [NAME]
-
[NAME]
string requiredThe name or binding of the DB
-
--skip-confirmation
boolean alias: --y default: falseSkip confirmation
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
boolean alias: --yAnswer "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
npx wrangler d1 export [NAME]
pnpm wrangler d1 export [NAME]
yarn wrangler d1 export [NAME]
-
[NAME]
string requiredThe name of the DB
-
--local
booleanExport from your local DB you use with wrangler dev
-
--remote
booleanExport from your live D1
-
--no-schema
booleanOnly output table contents, not the DB schema
-
--no-data
booleanOnly output table schema, not the contents of the DBs themselves
-
--table
stringSpecify which tables to include in export
-
--output
string requiredWhich .sql file to output to
npx wrangler d1 time-travel info [DATABASE]
pnpm wrangler d1 time-travel info [DATABASE]
yarn wrangler d1 time-travel info [DATABASE]
-
[DATABASE]
string requiredThe name or binding of the DB
-
--timestamp
stringAccepts a Unix (seconds from epoch) or RFC3339 timestamp (e.g. 2023-07-13T08:46:42.228Z) to retrieve a bookmark for
-
--json
boolean default: falseReturn output as clean JSON
npx wrangler d1 time-travel restore [DATABASE]
pnpm wrangler d1 time-travel restore [DATABASE]
yarn wrangler d1 time-travel restore [DATABASE]
-
[DATABASE]
string requiredThe name or binding of the DB
-
--bookmark
stringBookmark to use for time travel
-
--timestamp
stringAccepts a Unix (seconds from epoch) or RFC3339 timestamp (e.g. 2023-07-13T08:46:42.228Z) to retrieve a bookmark for
-
--json
boolean default: falseReturn output as clean JSON
npx wrangler d1 migrations list [DATABASE]
pnpm wrangler d1 migrations list [DATABASE]
yarn wrangler d1 migrations list [DATABASE]
-
[DATABASE]
string requiredThe name or binding of the DB
-
--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 --remote
-
--preview
boolean default: falseExecute commands/files against a preview D1 DB
-
--persist-to
stringSpecify directory to use for local persistence (you must use --local with this flag)
npx wrangler d1 migrations create [DATABASE] [MESSAGE]
pnpm wrangler d1 migrations create [DATABASE] [MESSAGE]
yarn wrangler d1 migrations create [DATABASE] [MESSAGE]
-
[DATABASE]
string requiredThe name or binding of the DB
-
[MESSAGE]
string requiredThe Migration message
npx wrangler d1 migrations apply [DATABASE]
pnpm wrangler d1 migrations apply [DATABASE]
yarn wrangler d1 migrations apply [DATABASE]
-
[DATABASE]
string requiredThe name or binding of the DB
-
--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 --remote
-
--preview
boolean default: falseExecute commands/files against a preview D1 DB
-
--persist-to
stringSpecify directory to use for local persistence (you must use --local with this flag)
import { WranglerNamespace } from "~/components";
<WranglerNamespace namespace="d1" />
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
-