On 1 November 1864, José Luís was appointed commander of the 2nd Division in the main Brazilian army, which by then was called the "Army of the South" and led by his uncle Field Marshal João Propício Mena Barreto (later Baron of São Gabriel).
An unintended consequence of the attack on Melo was that Paraguay declared war on Brazil in late 1864.