The President of the United States is a civilian. He is not a member of the armed forces / military. So does not wear a uniform. He is commander of the military because in the United States the military are subject to civilian command.