I am trying to make configuration of a new macOS system as automated as possible. I use Alfred and prefer to use Cmd-Space to trigger the Alfred window instead of the install default of calling off to Spotlight.
There is a similar question about disabling Spotlight to re-use the hotkey for Alfred How to disable spotlight for Alfred however it relies on the GUI and navigating System Preferences. I'd really like to be able to automate this as part of bootstrapping via yadm which I use to configure as much of the machine as possible to a preferred working state.