LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

sqlit

Lazygit-style TUI for SQL databases

TLDR

Launch the interactive TUI
$ sqlit
copy
Connect to a saved connection
$ sqlit -c "[MyConnection]"
copy
Run a query from the CLI
$ sqlit query -c "[MyConnection]" -q "[SELECT * FROM Users]" --format csv
copy

SYNOPSIS

sqlit [-c connectionname_]sqlit query [-c connectionname] [**-q** query] [**--format** format_]

DESCRIPTION

sqlit is a lightweight, keyboard-driven TUI for connecting to and querying SQL databases from the terminal. It supports 20+ database systems including PostgreSQL, MySQL, SQLite, DuckDB, BigQuery, ClickHouse, and Snowflake. Features include query history, autocomplete, Vim-style editing, SSH tunneling, Docker container auto-discovery, and secure credential storage.

PARAMETERS

-c CONNECTION

Connect using a saved connection name.
-q QUERY
SQL query to execute (used with the query subcommand).
--format FORMAT
Output format for query results: table, csv, json (used with the query subcommand).

HISTORY

sqlit was created by Maxteabag (Peter Adams) and is written in Python.

SEE ALSO

litecli(1), harlequin(1), usql(1), pgcli(1), mycli(1)

Copied to clipboard
Kai