Aller au contenu
Skillpedia
Programmation générale48k · #4805

hf-cli

Ce qu’il fait

hf-cli est un outil qui vous aide à gérer les fichiers et les informations sur le Hugging Face Hub, un lieu où des personnes partagent des modèles d'IA, des données et d'autres ressources. Vous pouvez l'utiliser pour copier, télécharger, envoyer et organiser ces fichiers.

Quand l’utiliser

  • ✓Lorsque vous avez besoin de télécharger un modèle d'IA à utiliser dans votre projet.
  • ✓Lorsque vous souhaitez envoyer vos propres données ou modèles sur le Hugging Face Hub.
  • ✓Lorsque vous devez organiser ou vérifier des fichiers déjà présents sur le Hugging Face Hub.

Lien du skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hf-cli/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hf-cli/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Comment télécharger le modèle de langage « bert-base-uncased » depuis le Hugging Face Hub ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

hf-cli fonctionne comme un « assistant » en ligne de commande. Vous tapez une commande comme « hf download » suivie du nom de ce que vous voulez télécharger, et l'outil se charge du reste.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

When to Use

  • Use when this upstream workflow matches the user's stated goal.
  • Use when the task requires the procedures documented in this skill.

Install: curl -LsSf https://hf.co/cli/install.sh | bash -s. <!-- security-allowlist: curl-pipe-bash -->

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 v1.32.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 the hf CLI to the latest version. [--format [auto|human|agent|json|quiet]]
  • hf upload REPO_ID — Upload a file or a folder to the Hub. Recommended for single-commit uploads. [--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 upload-large-folder REPO_ID LOCAL_PATH — [Deprecated] Upload a large folder to the Hub. Use hf upload instead. [--type [model|dataset|space|kernel] --revision TEXT --private --include TEXT --exclude TEXT --num-workers INTEGER --no-report --no-bars --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.

…

Questions fréquentes

Qu'est-ce que le Hugging Face Hub ?

C'est un dépôt en ligne où des chercheurs et des développeurs partagent des modèles d'apprentissage automatique, des jeux de données et des applications.

Que signifie « ligne de commande » ?

C'est une façon d'interagir avec votre ordinateur en tapant des commandes, au lieu d'utiliser la souris et les menus graphiques.

Qu'est-ce qu'un « modèle d'IA » ?

C'est un programme informatique entraîné sur un grand volume de données pour accomplir des tâches précises, comme comprendre un texte ou générer des images.

Détails

Description originale de l’auteur

Curated upstream guidance for Hf Cli; use when the workflow matches the user goal.

repo: sickn33/agentic-awesome-skills

Popularité

Étoiles GitHub
48k
Position au classement
#4805
Licence
MIT
Mis à jour
15/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires