How To Install Sqlformat?

How To Install Sqlformat?

sqlformat

SQL formatting utility

Maintainer: Andrii Senkovych



Section: text

Install sqlformat

  • Debian apt-get install sqlformat Click to copy
  • Ubuntu apt-get install sqlformat Click to copy
  • Arch Linux pacman -S sqlformat Click to copy
  • Kali Linux apt-get install sqlformat Click to copy
  • Fedora dnf install sqlformat Click to copy
  • Raspbian apt-get install sqlformat Click to copy
  • macOS brew install sqlformat Click to copy

sqlformat

SQL formatting utility

The sqlformat command-line tool can be used to reformat SQL file according to specified options or prepare a snippet in some programming language (only Python and PHP currently supported).

python3-sqlparse

non-validating SQL parser for Python 3

Sqlparse is a library which provides support for parsing, splitting and customizable formatting of SQL statements in Python environment. This is the Python 3 version of the package.

python-sqlparse

non-validating SQL parser for Python 2

Sqlparse is a library which provides support for parsing, splitting and customizable formatting of SQL statements in Python environment. This is the Python 2 version of the package.

sqlparse

Installing sqlformat command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Arch, Kali, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of sqlformat 2026 package in your OS.