duckdb -f setup.sql

Category: Databases & SQL

duckdb -f setup.sql

Run SQL statements from a file

-f reads setup.sql and executes every statement, which is convenient for schema scripts; -init runs a file before reading stdin. Related: -c.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.