Fix CLI compatibility with huggingface_hub 1.22 (#47059) (#47064)