How you do it? Easy, just ALTER INDEX xyz REBUILD.

The bigger question, though, is why would you want to do it? If you are just rebuilding indexes because you think it's a good idea to periodically do it, then think again.