Export schema and data as executable SQL.
Section: Output, import, and export
Dump the full database as SQL
text
text
.dumpExplanation
Helpful for backups, migrations, and reproducible fixtures.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Output, import, and export
Import a CSV file into a table
Load rows from CSV using the shell importer.
Write the next query result to a file
Send one result set to a file without changing subsequent output.