Zum Inhalt springen
Skillpedia
Allgemeines Programmieren48k · #4805

hf-cli

Was er macht

hf-cli ist ein Tool, mit dem du Dateien und Informationen auf dem Hugging Face Hub verwalten kannst. Dort teilen Menschen KI-Modelle, Daten und andere Ressourcen. Du kannst damit diese Dateien kopieren, herunterladen, hochladen und organisieren.

Wann du ihn nutzt

  • ✓Wenn du ein KI-Modell für dein Projekt herunterladen musst.
  • ✓Wenn du eigene Daten oder Modelle auf den Hugging Face Hub hochladen willst.
  • ✓Wenn du Dateien, die bereits auf dem Hugging Face Hub liegen, organisieren oder prüfen musst.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hf-cli/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Wie lade ich das Sprachmodell „bert-base-uncased“ vom Hugging Face Hub herunter?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

hf-cli funktioniert wie ein Assistent in der Kommandozeile. Du tippst einen Befehl wie „hf download“, gefolgt vom Namen dessen, was du herunterladen willst, und das Tool erledigt den Rest.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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.

…

Häufige Fragen

Was ist der Hugging Face Hub?

Er ist ein Online-Repository, in dem Forschende und Entwickler Machine-Learning-Modelle, Datensätze und Anwendungen teilen.

Was bedeutet „Kommandozeile“?

Es ist eine Möglichkeit, mit deinem Computer zu arbeiten, indem du Befehle eintippst, statt mit der Maus und grafischen Menüs zu arbeiten.

Was ist ein „KI-Modell“?

Es ist ein Computerprogramm, das mit vielen Daten trainiert wurde, um bestimmte Aufgaben zu erledigen, etwa Text zu verstehen oder Bilder zu erzeugen.

Details

Originalbeschreibung des Autors

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

repo: sickn33/agentic-awesome-skills

Beliebtheit

GitHub-Sterne
48k
Platz im Ranking
#4805
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills