I am looking for a command line SQL formatter = SQL prettifier = SQL beautifier (*not* an online formatter) for Mac. The goal is to run it on the command line and also inside the editor ([Emacs](https://en.wikipedia.org/wiki/Emacs)) for SQL files under a few thousand lines. **Related:** Most of these questions are closed: * [What Free SQL Formatting Tools exist? - Stack Overflow](https://stackoverflow.com/questions/3310188/what-free-sql-formatting-tools-exist) * [plsql - Good free offline PL/SQL formatter - Stack Overflow](https://stackoverflow.com/questions/522040/good-free-offline-pl-sql-formatter) * [sql server - Tidy for SQL - Stack Overflow](https://stackoverflow.com/questions/1093106/tidy-for-sql) * [linux - SQL string formatter - Stack Overflow](https://stackoverflow.com/questions/392001/sql-string-formatter) * [python - How to pretty format the printing of SQL Queries in SQLAlchemy? - Stack Overflow](https://stackoverflow.com/questions/44335158/how-to-pretty-format-the-printing-of-sql-queries-in-sqlalchemy) * [postgresql - SQL Query Formatter - Database Administrators Stack Exchange](https://dba.stackexchange.com/questions/11074/sql-query-formatter) * [database - Linux CLI tool for auto-formatting (pretty printing) large SQL files - Software Recommendations Stack Exchange](https://softwarerecs.stackexchange.com/questions/82791/linux-cli-tool-for-auto-formatting-pretty-printing-large-sql-files/82793#82793) (for Linux, while my question is for Mac)