metadata
title: Huggingface Cli Completion
emoji: ⚡
colorFrom: gray
colorTo: gray
sdk: static
pinned: false
license: apache-2.0
short_description: Auto completion for the `huggingface-cli download` command
Hugging Face CLI Autocompletion
This repository contains a Bash script to enable autocompletion for the huggingface-cli
command, specifically for downloading models from the Hugging Face Model Hub.
Features
- Command Suggestions: Automatically suggests available commands like
download
,upload
, etc. - Model Name Completion: When typing
huggingface-cli download
, it fetches and suggests model names from the Hugging Face Model Hub.
Installation
To install the autocompletion script, run the following command in your terminal:
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:
- Start typing the command:
huggingface-cli download google/
- Press TAB to see suggestions:
$ huggingface-cli download google/
google/codegemma-7b google/flan-t5-xl google/gemma-2-2b-jpn-it-flax
google/madlad400-10b-mt google/vit-base-patch16-224 google/datagemma-rag-27b-it
google/flan-t5-xxl google/gemma-2-2b-jpn-it-pytorch ...
Contributing
Feel free to contribute by submitting issues or pull requests. Your contributions are welcome!
License
This project is licensed under the MIT License.