内容纲要
🗄 Manage Workers D1 databases
COMMANDS
Command | Description |
---|---|
wrangler d1 list | List D1 databases |
wrangler d1 info |
Get information about a D1 database, including the current database size and state |
wrangler d1 insights |
Experimental command. Get information about the queries run on a D1 database. |
wrangler d1 create |
Create D1 database |
wrangler d1 delete |
Delete D1 database |
wrangler d1 backup | Interact with D1 backups |
wrangler d1 execute |
Execute a command or SQL file |
wrangler d1 export |
Export the contents or schema of your database as a .sql file |
wrangler d1 time-travel | Use Time Travel to restore, fork or copy a database at a specific point-in-time |
wrangler d1 migrations | Interact with D1 migrations |
GLOBAL FLAGS
-c, --config Path to Wrangler configuration file [string]
--cwd Run as if Wrangler was started in the specified directory instead of the current working directory [string]
-e, --env Environment to use for operations, and for selecting .env and .dev.vars files [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]