Put a 3D null at the very center of the cube -- inside it. Parent the cube faces to the new null. Rotate the null.
Lets say for example that you want a cube that is 400 pixels by 400 by 400.
Here's a sample cube project using shape layers and an expression to cycle through the fill colors.