gswitch

Install command:
brew install --cask gswitch

Name: gSwitch

Set which graphics card to use

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

Cask JSON API: /api/cask/gswitch.json

Cask code: gswitch.rb on GitHub

Current version: 1.9.7

Current version 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 109
Installs (90 days)
gswitch 306
Installs (365 days)
gswitch 1,289
Fork me on GitHub