SQLcl is a command-line client for connecting to and running SQL against Oracle Database. It is aimed at database administrators and developers who prefer working in a terminal over a graphical tool.
The tool is distributed through Homebrew and runs on macOS. It is published by Oracle, which also lists it on its own website. The facts supplied do not state its license or pricing, so those are not described here.
Alternatives to SQLcl
Products that do a similar job in Developer Tools.
MySQL Shell
Interactive shell for running JavaScript, Python or SQL against MySQL
TablePlus
Native database GUI for MySQL, PostgreSQL and other relational databases
DataGrip
IDE for working with SQL databases
Beekeeper Studio
SQL editor and database manager for common database servers
DBeaver Community Edition
Free desktop SQL client and database administration tool
Sequel Ace
MySQL and MariaDB database client for macOS
DBX
Desktop database management tool for macOS
TablePro
Native database client for macOS with support for many database types