Track ids on import, info command

I’m getting an error when running beet duplicates :

all keys [‘mb_trackid’, ‘mb_albumid’] on item are null or empty: skipping

My tracks have been imported without the keys, how do i remedy this?

Also has the info command been depreciated? Is there an alternative to view track infformation