Nightlight is a CLI for configuring your “Night Shift” settings.

There is also a Night Light extension for Raycast.