What is the highest rank in the military?

In the US Commander In Chief is the President, 4 Star General in peacetime (5-star war time only) or General of the Army is otherwise the highest Officer Rank
.