Terminal command for XCode->File->Packages->Reset Package Cache

I am using XCode 13.1 and wondering a way to execute XCode->File->Packages->Reset Package Cache on terminal. I see my CI machine is failing every time not for specific package but some random package. And when manually do XCode->File->Packages->Reset Package Cache, it resolves the package graph properly. I already tried clearing DerivedData and also clearing /Users/bostonsamddv/Library/Caches/org.swift.swiftpm with no luck :(

Any help will be appreciated.

@AmiBSC did you find a solution?

Terminal command for XCode->File->Packages->Reset Package Cache
 
 
Q