Hugging Face CLI Autocompletion

Enhance your command line experience with autocompletion for huggingface-cli!

Installation

To install the autocompletion script, run the following command:

curl -sSL https://huggingface.co/spaces/pavel321/huggingface-cli-completion/resolve/main/huggingface-cli-completion.sh >> ~/.bashrc && source ~/.bashrc

Usage

After installation, you can use the autocompletion feature as follows:

$ huggingface-cli download google/

This will suggest available models:

google/codegemma-7b                google/flan-t5-xl
google/gemma-2-2b-jpn-it-pytorch   google/matcha-plotqa-v2
google/gemma-2-9b                  google/owlvit-base-patch32
google/gemma-2-9b-it               google/paligemma-3b-pt-224
google/gemma-2b                    google/pegasus-cnn_dailymail
google/gemma-2b-it                 google/siglip-so400m-patch14-384
google/gemma-7b                    google/timesfm-1.0-200m