How to change desktops with a shell command or script?

Does anyone know how to change desktops (in Compiz) with a shell command or script? I have been wanting this for a while, and would be cool to integrate with my new MX Revolution.