Can I control SoundSwitch from the command line?
9/28/26Less than 1 minute
Is there a way to control SoundSwitch from the command line?
Yes — SoundSwitch ships with an official CLI (SoundSwitch.CLI). It is bundled with the installer and added to your PATH so you can call it from any terminal:
SoundSwitch.CLI.exe switch --type Playback
SoundSwitch.CLI.exe switch --type Recording
SoundSwitch.CLI.exe mute --toggle
SoundSwitch.CLI.exe profile --list --json
SoundSwitch.CLI.exe status
SoundSwitch.CLI.exe devicesAll commands accept --json for machine-readable output; failures in JSON mode print a JSON object with an error field and exit with code 1.
See the CLI usage page for the full command reference.
Third-party tools
Historically, before SoundSwitch shipped with its own CLI, the recommended workaround was NirCMD, which can change the default playback device from a script. It is still useful for very advanced scenarios that the SoundSwitch CLI doesn't cover.
Source: #1081