This assumes that you already removed all the airbox plumbing to expose the TB.
Easiest way is with two people. One to sit in the car, turn the key to ON, and push down the accelerator - that will open the throttle plate. Other person cleans the TB. You can also do the "brick" trick if you don't have a second set of hands around to help - you prop a brick or similar the accelerator in the car to open up the throttle plate. Note that in some engines, like the 2GRFE (V6) - the throttle plate will barely open. In those cases, you can force it open - just make sure there is no power applied to anything. Worst possible thing you can do is try and force the throttle with the key in the ON position - mess up the calibration.
If doing this solo, sans brick - disconnect the battery, key out of the ignition. Push on the bottom of the throttle plate to open it. Hold it while you clean around it. This is the exact same method as a conventional TB cleaning, but there is no throttle "arm" to leverage off of. On the DBW setups - you have to prop the throttle plate open or hold it open by hand. Don't force anything in either case - if it doesn't want to move easily, then you probably are doing something wrong.
There is already lots of good links online. Should be one here and on TN - if you want a Toyota specific one. I think a mod on TN, hardtopte72 has one on 2005-2008 Corolla's with the DBW setup as well as the 2AZFE engine on Scion and Toyota. Should be some videos floating around on Youtube or similar, if you want to reference back to one of those.