CLI Tool Utilities & Power Tools ★ 10,175 stars on GitHub

usql

Connect, query, and manage dozens of different SQL and NoSQL databases from a single intuitive command-line interface.

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

usql is a universal tool that lets database administrators and software creators talk to almost any database using familiar text commands. Instead of learning a separate management program for every single technology, you can use one unified environment for PostgreSQL, MySQL, SQLite, and many others. It even handles moving data back and forth between completely different types of databases seamlessly.

Who it’s for

  • Database administrators managing mixed environments who want one go-to command tool for everything.
  • Software developers who love the classic PostgreSQL style of command-line interaction and want it across all their data platforms.
  • Data analysts who need to quickly connect to various cloud or local data sources without heavy graphical software.

Key features

  • Connects to dozens of SQL and NoSQL platforms including PostgreSQL, MySQL, Microsoft SQL Server, Oracle, and SQLite.
  • Supports convenient copy operations to transfer records directly between entirely different database systems.
  • Provides context-sensitive autocompletion and saved variables to speed up your routine queries.
  • Offers multiple output formats including tables, vertical views, JSON, CSV, and Markdown.

How to install (Download)

You can grab the compiled program directly for your computer system below, or use package managers like Homebrew.

Pros and Cons

  • Pros: Free and open source, eliminates the need to install dozens of separate database clients, supports cross-platform data copying.
  • Cons: Advanced drivers or custom builds may require familiarity with Go compilation tags, command-line interface requires comfort with text inputs.

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.