gswitch

Install command:
brew install --cask gswitch

Name: gSwitch

Set which graphics card to use

https://codyschrank.github.io/gSwitch/

/api/cask/gswitch.json (JSON API)

Cask code on GitHub

Current version: 1.9.7

Requires: macOS >= 10.12

gswitch is built for Intel macOS and so requires Rosetta 2 to be installed.
You can install Rosetta 2 with:
    softwareupdate --install-rosetta --agree-to-license
Note that it is very difficult to remove Rosetta 2 once it is installed.

Analytics:

Installs (30 days)
gswitch 116
Installs (90 days)
gswitch 354
Installs (365 days)
gswitch 1,274
Fork me on GitHub