He was promoted to captain (Hauptmann) in 1909. He served as a company commander in the Bavarian infantry. In World War I Hierl served as a member of the general staff of the I Royal Bavarian Reserve Corps, part of the German 6th Army fighting on the Western Front, where he achieved the rank of a lieutenant colonel.