ɪn wˈʌn θˈaʊzənd ˈeɪthˈʌndɹɪd twˈɛnti hiː wʌz tʃˈiːf ʌv stˈæf ʌvðə lˈɪbɚɹˌeɪɾɪŋ ˈɑːɹmi ʌv pɚɹˈuː, ænd ɪnðə sˈeɪm jˈɪɹ wʌz pɹəmˈoʊɾᵻd tə bɹˌɪɡɐdˈɪɹ baɪ ðɪ ˈɑːɹdʒəntˌaɪn ɡˈʌvɚnmənt, ænd dʒˈɛnɚɹəl ʌv dᵻvˈɪʒən baɪ ðə tʃɪlˈiːən ɡˈʌvɚnmənt.
In 1820 he was chief of staff of the liberating army of Peru, and in the same year was promoted to brigadier by the Argentine government, and general of division by the Chilean government.