Harlequin SQL CLI IDE

2025-01-28

brehttps://harlequin.sh/ is a terminal base SQL IDE.

Install

Install [[python | python with pyenv and pipx]]. Then:

# install halrequin
pipx install harlequin

# add postgres adapter
pip install harlequin-postgres

# inject adapter to existing installation
pipx inject harlequin harlequin-postgres

# start a session
harlequin -a postgres # opens in default database

# use a postgres DSN (https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING)
harlequin -a postgres -d {dbname}

# with a theme
harlequin -a postgres -t dracula -d {dbname}

# show files
harlequin -a postgres -t dracula -f /path/to/dir

# open with a profile
harlequin --profile {profile}

Default keybindings: https://harlequin.sh/docs/bindings---

About

Home

Contact Me

mitchell@gritts.me

This Site

Built by me. Writing and images are my original work unless otherwise noted. Please attribute this site when sharing.

This content served from this URL (mitchell.gritts.net) is licensed with the Unlicense. Content served from other URLs may have other licenses. The repo is currently private while I actively build out the site.