# How to Export SQLite3 DB to SQL
You can export a SQLite database using the command line. Here are a few methods:
## Exporting Full Schema
```bash
sqlite3 test.db .schema > schema.sql
Using Here Document
sqlite3 test.db <<EOF
.output schema.sql
.schema
EOF
Export Specific Tables
Start SQLite3:
sqlite3 apple.db
Set output file:
.output backup.sql
Export schemas:
.schema person
.schema animal
Exit:
.exit
Feel free to adjust any sections as needed!