Skip to main content
The duckdb command launches the DuckDB command-line tool.

Usage

Options

In addition to the global options, this command supports:

Examples

Open DuckDB CLI:
Open the local DuckDB UI:

Notes

  • Exit the DuckDB CLI with .exit
  • If a duckdb_init.sql file exists, it will be written to target/duckdb_init.sql (with additional DuckDB commands) and loaded.
  • The DuckDB CLI must be installed for this command to work. If the DuckDB CLI is not installed, install it from https://duckdb.org/install