hf-cli
Что он делает
Этот скилл позволяет ИИ использовать инструмент командной строки hf для работы с Hugging Face Hub. Он нужен тем, кто скачивает или публикует модели ИИ, наборы данных и демо и хочет, чтобы агент выполнял эти шаги.
Когда использовать
- ✓Когда вы хотите скачать модель, набор данных или Space с Hugging Face Hub.
- ✓Когда вы хотите загрузить файлы или папку в репозиторий Hub.
- ✓Когда нужно управлять локальным кэшем, войти в аккаунт или проверить свой аккаунт Hub.
Ссылка на скилл
https://github.com/huggingface/skills/blob/main/skills/hf-cli/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Скачай файлы модели из этого репозитория Hugging Face в мою папку и покажи имя моего аккаунта, чтобы подтвердить, что я вошёл.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
ИИ запускает инструмент командной строки hf, который отвечает за вход, скачивание, загрузку и управление кэшем. Чтобы выбрать нужную команду для каждой задачи, он читает встроенную справку инструмента.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Install: curl -LsSf https://hf.co/cli/install.sh | bash -s.
The Hugging Face Hub CLI tool hf is available. IMPORTANT: The hf command replaces the deprecated huggingface-cli command.
Use hf --help to view available functions. Note that auth commands are now all under hf auth e.g. hf auth whoami.
Generated with huggingface_hub v2.4.0. Run hf skills add --force to regenerate.
Commands
hf cp SRC— Copy files between local paths, repositories, and buckets.[--format [auto|human|agent|json|quiet]]hf download REPO_ID— Download files from the Hub.[--type [model|dataset|space|kernel] --revision TEXT --include TEXT --exclude TEXT --cache-dir TEXT --local-dir TEXT --force-download --dry-run --max-workers INTEGER --format [auto|human|agent|json|quiet]]hf env— Print information about the environment.[--format [auto|human|agent|json|quiet]]hf sync— Sync files between local directory and a bucket.[--delete --ignore-times --ignore-sizes --plan TEXT --apply TEXT --dry-run --include TEXT --exclude TEXT --filter-from TEXT --existing --ignore-existing --verbose --format [auto|human|agent|json|quiet]]hf update— Update thehfCLI to the latest version.[--format [auto|human|agent|json|quiet]]hf upload REPO_ID— Upload a file or a folder to the Hub.[--type [model|dataset|space|kernel] --revision TEXT --private --include TEXT --exclude TEXT --delete TEXT --commit-message TEXT --commit-description TEXT --create-pr --every FLOAT --format [auto|human|agent|json|quiet]]hf version— Print information about the hf version.[--format [auto|human|agent|json|quiet]]
hf auth — Manage authentication (login, logout, etc.).
hf auth list— List all stored access tokens.[--format [auto|human|agent|json|quiet]]hf auth login— Login from your browser, or using a token from huggingface.co/settings/tokens.[--add-to-git-credential --force --format [auto|human|agent|json|quiet]]hf auth logout— Logout from a specific token.[--token-name TEXT --format [auto|human|agent|json|quiet]]hf auth switch— Switch between access tokens.[--token-name TEXT --add-to-git-credential --format [auto|human|agent|json|quiet]]hf auth token— Print the current access token to stdout.[--format [auto|human|agent|json|quiet]]hf auth whoami— Find out which huggingface.co account you are logged in as.[--format [auto|human|agent|json|quiet]]
hf buckets — Commands to interact with buckets.
hf buckets cp SRC— Copy files between local paths, repositories, and buckets.[--format [auto|human|agent|json|quiet]]hf buckets create BUCKET_ID— Create a new bucket.[--private --region [us|eu] --exist-ok --format [auto|human|agent|json|quiet]]hf buckets delete BUCKET_ID— Delete a bucket.[--yes --missing-ok --format [auto|human|agent|json|quiet]]hf buckets info BUCKET_ID— Get info about a bucket.[--format [auto|human|agent|json|quiet]]hf buckets list— List buckets or files in a bucket.[--human-readable --tree --recursive --search TEXT --format [auto|human|agent|json|quiet]]hf buckets move FROM_ID TO_ID— Move (rename) a bucket to a new name or namespace.[--format [auto|human|agent|json|quiet]]hf buckets remove ARGUMENT— Remove files from a bucket.[--recursive --yes --dry-run --include TEXT --exclude TEXT --format [auto|human|agent|json|quiet]]hf buckets settings BUCKET_ID— Update bucket settings (visibility).[--private --public --format [auto|human|agent|json|quiet]]hf buckets sync— Sync files between local directory and a bucket.[--delete --ignore-times --ignore-sizes --plan TEXT --apply TEXT --dry-run --include TEXT --exclude TEXT --filter-from TEXT --existing --ignore-existing --verbose --format [auto|human|agent|json|quiet]]
hf cache — Manage local cache directory.
hf cache list— List cached repositories or revisions.[--cache-dir TEXT --revisions --filter TEXT --sort [accessed|accessed:asc|accessed:desc|modified|modified:asc|modified:desc|name|name:asc|name:desc|size|size:asc|size:desc] --limit INTEGER --show-warnings --format [auto|human|agent|json|quiet]]hf cache prune— Remove detached revisions and incomplete downloads from the cache.[--cache-dir TEXT --yes --dry-run --format [auto|human|agent|json|quiet]]hf cache rm TARGETS— Remove cached repositories, revisions or files. `[--cache-dir TEXT --yes --dry-run --format [auto|human|agent|json|quiet
Частые вопросы
Заменяет ли он старую команду huggingface-cli?
Да. Команда hf заменяет устаревшую команду huggingface-cli.
Как проверить, что я вошёл в аккаунт?
Команды аутентификации собраны в группе hf auth, например hf auth whoami показывает ваш аккаунт.
Может ли он запускать задачи на Hugging Face?
Да. Он может запускать и планировать задачи на инфраструктуре Hugging Face, а также управлять бакетами и репозиториями.
Подробности
Оригинальное описание автора
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and more on the Hugging Face Hub. Use when: handling authentication; managing local cache; managing Hugging Face Buckets; running or scheduling jobs on Hugging Face infrastructure; managing Hugging Face repos; discussions and pull requests; browsing models, datasets and spaces; reading, searching, or browsing academic papers; managing collections; querying datasets; configuring spaces; setting up webhooks; or deploying and managing HF Inference Endpoints. Make sure to us
repo: huggingface/skills
Популярность
- Звёзды на GitHub
- 11k
- Место в рейтинге
- #11765
- Лицензия
- Apache-2.0
- Обновлён
- 30.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
hf-cloud-aws-context-discovery
11kПомогает агенту найти ваш профиль AWS, регион и данные аккаунта до любой облачной работы, чтобы он не угадывал, каким аккаунтом пользоваться.
hf-cloud-python-env-setup
11kПомогает агенту настроить чистое окружение Python с подходящей версией Python и актуальными библиотеками перед запуском SageMaker или автоматизации AWS.
hf-cloud-sagemaker-deployment-planner
11kПомогает агенту спланировать развёртывание модели в Amazon SageMaker: выбрать размещение в реальном времени, бессерверное, асинхронное или пакетное.
hf-cloud-sagemaker-iam-preflight
11kПомогает агенту убедиться, что перед развёртыванием существует пригодная роль выполнения SageMaker, а не создавать новые права в вашем аккаунте AWS без проверки.
Похожие скиллы
pytorch-patterns
280kПомогает агенту использовать PyTorch для моделей машинного обучения: эффективное обучение и воспроизводимые результаты.
evm-token-decimals
280kПомогает агенту избегать ошибок с десятичными знаками в разных блокчейн-сетях, чтобы суммы токенов были точными.
ito-inference
280kАгент проверяет доступность моделей ИИ и связывает запрос на вычисления с готовым сервисом модели.