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 98
Installs (90 days)
gswitch 346
Installs (365 days)
gswitch 1,273
Fork me on GitHub