sleek

Lightweight CLI tool for formatting and beautifying SQL queries

brewmacoslinux
Try with needOr install directly
Source

About

CLI tool for formatting SQL

Commands

sleek

Examples

Format a SQL file and display the output$ sleek query.sql
Format SQL from stdin and write to a file$ echo 'SELECT * FROM users WHERE id=1' | sleek > formatted.sql
Format SQL with custom indentation$ sleek --indent 2 query.sql