SKILL

hf-cli

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 use this skill whenever the user mentions 'hf', 'huggingface', 'Hugging Face', 'huggingface-cli', or 'hugging face cli', or wants to do anything related to the Hugging Face ecosystem and to AI and ML in general. Also use for cloud storage needs like training checkpoints, data pipelines, or agent traces. Use even if the user doesn't explicitly ask for a CLI command. Replaces the deprecated `huggingfa

Target: Learning & research. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Commands
  • hf auth — Manage authentication (login, logout, etc.).
  • hf buckets — Commands to interact with buckets.
  • hf cache — Manage local cache directory.
  • hf collections — Interact with collections on the Hub.
  • hf datasets — Interact with datasets on the Hub.
  • hf discussions — Manage discussions and pull requests on the Hub.
  • hf endpoints — Manage Hugging Face Inference Endpoints.

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 huggingfacehub v2.4.0. Run hf skills add --force to regenerate. hf cp SRC — Copy files between local paths, repositories, and buckets. [--format [auto|human|agent|json|quiet]] hf download REPOID — 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

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
huggingface/skills
Source file
skills/hf-cli/SKILL.md
Fixed revision
25910b3d0ba31a2ba102f901cdc9e008c278a69c
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: huggingface/skills · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T16:01:02.668Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

Apache-2.0. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.