CLI Tool Utilities & Power Tools ★ 6,535 stars on GitHub

Harlequin

Harlequin is a powerful SQL query studio that runs directly inside your command-line environment, supporting multiple databases with ease.

Command-Line Utility (No Graphical Interface): This program runs inside your system terminal or command prompt rather than opening a desktop window. Follow the official installation instructions below.

Guide and Overview

What it does in plain English

Harlequin provides a clean, visual workspace for writing and executing database queries without leaving your command-line interface. It connects to popular database systems seamlessly, offering features like code completion, schema exploration, and custom color themes. Whether you are analyzing local files or querying remote servers, it keeps your workflow lightning-fast and focused.

Who it’s for

  • Data analysts and developers who spend their day inside terminal windows and want a fast interface for checking database tables.
  • System administrators who need a lightweight tool to query production or staging databases securely via secure shells.
  • Automation engineers looking for a companion command-line utility to run headless queries and inspect catalogs.

Key features

  • Runs entirely inside your terminal with an intuitive layout and keyboard shortcuts.
  • Connects to dozens of different database systems using flexible plug-in adapters.
  • Includes a companion helper command for automated tasks, script execution, and headless queries.
  • Fully customizable appearance with adjustable color themes and key bindings.
  • Safely enforces read-only connection limits to prevent accidental data modifications.

How to install (Download)

Harlequin is installed through standard package managers for your programming environment. If you already have Python installed, you can set it up immediately using your preferred tool:

Pros and Cons

  • Pros: Blazing fast terminal interface, highly extensible with database adapters, free and open-source.
  • Cons: Requires a basic familiarity with command-line tools to set up and configure.

Optional commercial services unrelated to the open-source developer. Clicking an #ad link helps fund HubHum at no extra cost to you.

  • ★ Top Recommended — Systeme.io: Free-forever all-in-one platform to build landing pages, newsletters, and automated workflows with zero monthly fees — Activate Systeme.io → (#ad)
  • AdGuard: Block intrusive ads, tracking scripts, and phishing domains system-wide across all browsers and desktop apps — AdGuard (#ad)
  • InterServer: Launch and host self-hosted web apps 24/7 on managed Linux cloud VPS servers starting at $3/month — InterServer (#ad)

Official Source & Credits: Official Source / Credits

Affiliate transparency (#ad): Some links on this page are affiliate links. If you choose to activate a service through them, we may earn a commission at no extra cost to you.

Your Saved Favorites

Your favorite apps are saved right here in this browser.


Sign in with one click to link your GitHub profile and sync favorites.