fix: packages parsing from cli when upgrade