CLI for managing the battery charging status for M1 Macs. Can be used to enable/disable the Macbook from charging the battery when plugged into power.
One-line installation:
curl https://raw.githubusercontent.com/actuallymentor/battery/main/setup.sh | sudo bash
This will:
smc
/usr/local/bin
battery
For help, run battery without parameters.