The container element or CSS selector where the terminal will be mounted. Can be an HTMLElement or a CSS selector string (e.g., '#terminal', '.container').
OptionalcontinuationThe continuation prompt displayed for multi-line SQL statements.
OptionaldatabaseThe database file path when using OPFS storage. Only used when storage is 'opfs'.
OptionalduckdbDuckDB-Wasm bundle manifest used during feature-based bundle selection.
A manifest with a coi entry is required when maximumThreads is greater
than 1.
OptionalenableEnable the charts feature (.chart command). When enabled, uPlot is loaded from CDN on first use.
OptionalexactCompute an exact result row count before fetching the first page. This can substantially increase work for expensive queries and is disabled by default.
OptionalfontFont family for the terminal text.
OptionalfontFont size in pixels.
OptionallinkWhether to automatically detect and make URLs clickable in output.
OptionalmaxMaximum number of rows displayed in a single terminal result page.
The terminal starts with this page size, and .pagesize 0 resets to it.
OptionalmaximumMaximum number of DuckDB execution threads.
Values greater than 1 require duckdbBundles with a compatible COI
bundle and a cross-origin-isolated page. Multithreading remains opt-in to
avoid downloading the larger experimental bundle by default.
OptionalpromptThe primary prompt string displayed before each command.
OptionalscrollbackScrollback buffer size in bytes. Larger values allow more history but use more memory.
OptionalstorageThe storage backend for the database.
OptionalthemeThe color theme for the terminal. Can be 'dark', 'light', or a custom Theme object.
OptionalwelcomeWhether to display the welcome message on startup.
Configuration options for creating a DuckDB terminal.
Example: Minimal configuration
Example: Full configuration