You can run any ADB command on your phone without ever connecting it to a PC.
This is how Android's dark mode should have worked since the start. Ready for an overdue injection of extra intelligence?