The SQL IDE for Your Terminal.
After installing Python 3.8 or above, install Harlequin using pip
or pipx
with:
pipx install harlequin
From any shell, to open one or more DuckDB database files:
harlequin "path/to/duck.db" "another_duck.db"
To open an in-memory DuckDB session, run Harlequin with no arguments:
harlequin
If you want to control the version of DuckDB that Harlequin uses, see the Troubleshooting page.
Harlequin also ships with a SQLite3 adapter. You can open one or more SQLite database files with:
harlequin -a sqlite "path/to/sqlite.db" "another_sqlite.db"
Like DuckDB, you can also open an in-memory database by omitting the paths:
harlequin -a sqlite
Other adapters can be installed using pip install <adapter package>
or pipx inject harlequin <adapter package>
, depending on how you installed Harlequin. For a list of known adapters provided either by the Harlequin maintainers or the broader community, see the adapters page in the docs.
To view all command-line options for Harlequin and all installed adapters, after installation, simply type:
harlequin --help
To view a list of all key bindings (keyboard shortcuts) within the app, press
COLOR, KEY BINDING, OR COPY-PASTE PROBLEMS? See Troubleshooting in the docs.
Visit harlequin.sh for an overview of features and full documentation.
Please consider sponsoring Harlequin's author, so he can continue to dedicate time to Harlequin.
Thanks for your interest in Harlequin! Harlequin is primarily maintained by Ted Conbeer, but he welcomes all contributions!
Please see CONTRIBUTING.md
for more information.