How to switch PulseAudio inputs and outputs from command line?

view story

http://unix.stackexchange.com – At work I use to use an USB headset which gets detected as separate audio output and input (for the mic) devices. At home I use conventional analogue headset which is plugged into my laptop built-in sound system with headphone/mic jacks. Every time I want to switch between the USB headset and my laptop built-in sound system I have to open PulseAudio control panel and select the device. Can't I just make a couple of command line shortcuts to do the switch? UPDATE: I've just came to even more interesting idea than using CLI-based shortcuts manually - I think It is possible to trigger their l (HowTos)