He was appointed to take command of the troops defending the Republic and later became commander of the interior troops and a major general.