hf-cli
Qué hace
Esta skill permite que la IA use la herramienta de línea de comandos hf para trabajar con el Hub de Hugging Face. Es para personas que descargan o comparten modelos de IA, conjuntos de datos y demos y quieren que su agente gestione esos pasos.
Cuándo usarla
- ✓Cuando quieres descargar un modelo, un conjunto de datos o un Space del Hub de Hugging Face.
- ✓Cuando quieres subir archivos o una carpeta a un repositorio del Hub.
- ✓Cuando necesitas gestionar la caché local, iniciar sesión o revisar tu cuenta del Hub.
Link de la skill
https://github.com/huggingface/skills/blob/main/skills/hf-cli/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Descarga los archivos del modelo de este repositorio de Hugging Face en mi carpeta y enséñame el nombre de mi cuenta para confirmar que tengo sesión iniciada.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA ejecuta la herramienta de línea de comandos hf, que gestiona el inicio de sesión, las descargas, las subidas y la caché. Lee la ayuda integrada de la herramienta para elegir el comando correcto en cada tarea.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Sustituye al antiguo comando huggingface-cli?
Sí. El comando hf sustituye al comando huggingface-cli, que está obsoleto.
¿Cómo compruebo que tengo sesión iniciada?
Los comandos de autenticación están agrupados bajo hf auth, como hf auth whoami para mostrar tu cuenta.
¿Puede ejecutar trabajos en Hugging Face?
Sí. Puede ejecutar y programar trabajos en la infraestructura de Hugging Face, además de gestionar buckets y repositorios.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 11 mil
- Posición en el ranking
- #11765
- Licencia
- Apache-2.0
- Actualizada
- 30/10/2026
Comentarios
- …
Más skills de este repositorio
hf-cloud-aws-context-discovery
11 milAyuda a tu agente a encontrar tu perfil, región y datos de cuenta de AWS antes de cualquier trabajo en la nube, para no adivinar qué cuenta usar.
hf-cloud-python-env-setup
11 milAyuda a tu agente a preparar un entorno de Python limpio, con una versión adecuada y las bibliotecas actuales, antes de ejecutar SageMaker o automatizaciones de AWS.
hf-cloud-sagemaker-deployment-planner
11 milAyuda a tu agente a planear cómo desplegar un modelo en Amazon SageMaker, eligiendo alojamiento en tiempo real, sin servidor, asíncrono o por lotes, con valores por defecto sensatos.
hf-cloud-sagemaker-iam-preflight
11 milAyuda a tu agente a confirmar que existe un rol de ejecución de SageMaker utilizable antes de desplegar, en vez de crear permisos nuevos en tu cuenta de AWS sin comprobarlo.
Skills parecidas
pytorch-patterns
280 milAyuda a tu agente a usar PyTorch para modelos de machine learning. Aplica buenas prácticas para entrenar modelos de forma eficiente y obtener resultados reproducibles.
evm-token-decimals
280 milAyuda a tu agente a evitar errores con números decimales en distintas redes blockchain. Asegura que los valores de los tokens sean exactos en transacciones y cálculos.
ito-inference
280 milPermite a tu agente comprobar la disponibilidad de modelos de IA. Conecta la solicitud de cómputo con el servicio de modelo listo.