Add the support of "inventory-file" download mode