[FEATURE] Add command to generate a PackageStates file