hf-cli
Skill0 starsChanged 3 months agoApache-2.0View on GitHub
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 `huggingface-cli`.
- Pipes a download into a shell
17 other projects use a version of this, 13 of them edited.
Adopted by
Most recently taken up by
- huggingface/paperswithcodeedited, first seen Nov 1, 2026
- kushvinth/skillsedited, first seen Oct 15, 2026
- opensite-ai/opensite-skillsedited, first seen Oct 13, 2026
- The-Utopia-Studio/skillsword for word, first seen Oct 13, 2026
- waybarrios/opencode-power-packedited, first seen Oct 13, 2026
- huggingface/mlclawedited, first seen Oct 13, 2026
Used with
Projects with it also use huggingface-local-models, huggingface-spaces and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Hugging FaceSkillhuggingface-local-models
Use to select models to run locally with llama.cpp and GGUF on CPU, Mac Metal, CUDA, or ROCm. Covers finding GGUFs, quant selection, running servers, exact GGUF file lookup, conversion, and OpenAI-compatible local serving.
Also in 5 projects that use this
Hugging FaceSkillhuggingface-spaces
Build, deploy, and maintain applications on Hugging Face Spaces — Gradio / Docker / Static SDKs, ZeroGPU and dedicated hardware, model loading, debugging, buckets, inference providers, community grants. Use whenever the user asks to create or host an app on Hugging Face, port code onto ZeroGPU, fix a Space that won't build or run, or otherwise work with `hf spaces …`, `@spaces.GPU`, Space README frontmatter, or the `spaces` Python package.
Also in 4 projects that use this
OpenAISkillsecurity-threat-model
Repository-grounded threat modeling that enumerates trust boundaries, assets, attacker capabilities, abuse paths, and mitigations, and writes a concise Markdown threat model. Trigger only when the user explicitly asks to threat model a codebase or path, enumerate threats/abuse paths, or perform AppSec threat modeling. Do not trigger for general architecture summaries, code review, or non-security design work.
Also in 3 projects that use this
- +3 more from huggingface
Other versions17 projects use a version of this.
Word for word · 1
- The-Utopia-Studio/skills★ 6100% same
Edited · 13
- huggingface/skills★ 11k51% same
- meta-pytorch/OpenEnv★ 2.8k95% same
- huggingface/OpenEnv★ 2.8k95% same
- waybarrios/opencode-power-pack★ 54753% same
- huggingface/ai-deadlines★ 35073% same
- huggingface/paperswithcode★ 31558% same
- huggingface/context-course★ 11264% same
- kitcut-hq/kitcut★ 4257% same
- opensite-ai/opensite-skills★ 1595% same
- huggingface/mlclaw★ 1063% same
3 more not listed
Wrote their own version · 3
- julweber/ai_agent_skills★ 2same name
- Kubementat/ai_agent_skills★ 2same name
- garri333/Skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository310 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/founder-productivity/salim/AGENTS.mdAGENTS.md
- skills/investments/ada/AGENTS.mdAGENTS.md
- skills/investments/khalil/AGENTS.mdAGENTS.md
- skills/product/vercel-composition-patterns/AGENTS.mdAGENTS.md
- skills/product/vercel-react-best-practices/AGENTS.mdAGENTS.md
- skills/product/vercel-react-native-skills/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/ceramic-design-system.mdcCursor rule
- agent-persona-builderSkill
- agent-prdSkill
- alignment-values-north-starSkill
- defuddleSkill
- draft-ndaSkill
- executive-onboarding-playbookSkill
- find-skillsSkill
- full-output-enforcementSkill
- grammar-checkSkill
- json-canvasSkill
- last30daysSkill
- market-segmentsSkill
- market-sizingSkill
- obsidian-basesSkill
- obsidian-cliSkill
- obsidian-markdownSkill
- pestel-analysisSkill
- porters-five-forcesSkill
- prioritization-frameworksSkill
- prioritizationSkill
- privacy-policySkill
- proofSkill
- review-resumeSkill
- role-switchSkill
- salimSkill
- skillshareSkill
- stakeholder-mapSkill
- swot-analysisSkill
- tam-sam-som-calculatorSkill
- workshop-facilitationSkill
- account-tier-scoringSkill
- activation-mapSkill
- ad-creativeSkill
- ai-cold-outreachSkill
- ai-sdrSkill
- beachhead-segmentSkill
- brand-narrative-playbookSkill
- business-narrative-builderSkill
- call-scorecardsSkill
- churn-preventionSkill
- cold-email-personalizationSkill
- cold-emailSkill
- cold-offer-architectSkill
- cold-outreachSkill
- competitive-battlecardSkill
- content-strategySkill
- content-to-pipelineSkill
- copy-editingSkill
- copywritingSkill
- customer-researchSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use hf --help to view available functions.
- Very specific: line 188
Use hf <command> --help for full options, descriptions, usage, and real-world examples
“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 v1.10.1. Run hf skills add --force to regenerate.
Commands
hf download REPO_ID— Download files from the Hub.[--type CHOICE --revision TEXT --include TEXT --exclude TEXT --cache-dir TEXT --local-dir TEXT --force-download --dry-run --quiet --max-workers INTEGER]hf env— Print information about the environment.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 --quiet]hf upload REPO_ID— Upload a file or a folder to the Hub. Recommended for single-commit uploads.[--type CHOICE --revision TEXT --private --include TEXT --exclude TEXT --delete TEXT --commit-message TEXT --commit-description TEXT --create-pr --every FLOAT --quiet]hf upload-large-folder REPO_ID LOCAL_PATH— Upload a large folder to the Hub. Recommended for resumable uploads.[--type CHOICE --revision TEXT --private --include TEXT --exclude TEXT --num-workers INTEGER --no-report --no-bars]hf version— Print information about the hf version.
hf auth — Manage authentication (login, logout, etc.).
hf auth list— List all stored access tokens.hf auth login— Login using a token from huggingface.co/settings/tokens.[--add-to-git-credential --force]hf auth logout— Logout from a specific token.[--token-name TEXT]hf auth switch— Switch between access tokens.[--token-name TEXT --add-to-git-credential]hf auth whoami— Find out which huggingface.co account you are logged in as.[--format CHOICE]
hf buckets — Commands to interact with buckets.
hf buckets cp SRC— Copy files to or from buckets.[--quiet]hf buckets create BUCKET_ID— Create a new bucket.[--private --exist-ok --quiet]hf buckets delete BUCKET_ID— Delete a bucket.[--yes --missing-ok --quiet]hf buckets info BUCKET_ID— Get info about a bucket.[--quiet]hf buckets list— List buckets or files in a bucket.[--human-readable --tree --recursive --format CHOICE --quiet]hf buckets move FROM_ID TO_ID— Move (rename) a bucket to a new name or namespace.hf buckets remove ARGUMENT— Remove files from a bucket.[--recursive --yes --dry-run --include TEXT --exclude TEXT --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 --quiet]
hf cache — Manage local cache directory.
hf cache list— List cached repositories or revisions.[--cache-dir TEXT --revisions --filter TEXT --format CHOICE --quiet --sort CHOICE --limit INTEGER]hf cache prune— Remove detached revisions from the cache.[--cache-dir TEXT --yes --dry-run]hf cache rm TARGETS— Remove cached repositories or revisions.[--cache-dir TEXT --yes --dry-run]hf cache verify REPO_ID— Verify checksums for a single repo revision from cache or a local directory.[--type CHOICE --revision TEXT --cache-dir TEXT --local-dir TEXT --fail-on-missing-files --fail-on-extra-files]
hf collections — Interact with collections on the Hub.
hf collections add-item COLLECTION_SLUG ITEM_ID ITEM_TYPE— Add an item to a collection.[--note TEXT --exists-ok]hf collections create TITLE— Create a new collection on the Hub.[--namespace TEXT --description TEXT --private --exists-ok]hf collections delete COLLECTION_SLUG— Delete a collection from the Hub.[--missing-ok]hf collections delete-item COLLECTION_SLUG ITEM_OBJECT_ID— Delete an item from a collection.[--missing-ok]hf collections info COLLECTION_SLUG— Get info about a collection on the Hub. Output is in JSON format.hf collections list— List collections on the Hub.[--owner TEXT --item TEXT --sort CHOICE --limit INTEGER --format CHOICE --quiet]hf collections update COLLECTION_SLUG— Update a collection's metadata on the Hub.[--title TEXT --description TEXT --position INTEGER --private --theme TEXT]hf collections update-item COLLECTION_SLUG ITEM_OBJECT_ID— Update an item in a collection.[--note TEXT --position INTEGER]
hf datasets — Interact with datasets on the Hub.
hf datasets info DATASET_ID— Get info about a dataset on the Hub.[--revision TEXT --expand TEXT --format CHOICE]hf datasets list— List datasets on the Hub.[--search TEXT --author TEXT --filter TEXT --sort CHOICE --limit INTEGER --expand TEXT --format CHOICE]hf datasets parquet DATASET_ID— List parquet file URLs available for a dataset.[--subset TEXT --split TEXT --format CHOICE]hf datasets sql SQL— Execute a raw SQL query with DuckDB against dataset parquet URLs.[--format CHOICE]
hf discussions — Manage discussions and pull requests on the Hub.
hf discussions close REPO_ID NUM— Close a discussion or pull request.[--comment TEXT --yes --type CHOICE]hf discussions comment REPO_ID NUM— Comment on a discussion or pull request.[--body TEXT --body-file PATH --type CHOICE]hf discussions create REPO_ID --title TEXT— Create a new discussion or pull request on a repo.[--body TEXT --body-file PATH --pull-request --type CHOICE]hf discussions diff REPO_ID NUM— Show the diff of a pull request.[--type CHOICE]hf discussions info REPO_ID NUM— Get info about a discussion or pull request.[--comments --diff --no-color --type CHOICE --format CHOICE]hf discussions list REPO_ID— List discussions and pull requests on a repo.[--status CHOICE --kind CHOICE --author TEXT --limit INTEGER --type CHOICE --format CHOICE --quiet]hf discussions merge REPO_ID NUM— Merge a pull request.[--comment TEXT --yes --type CHOICE]hf discussions rename REPO_ID NUM NEW_TITLE— Rename a discussion or pull request.[--type CHOICE]hf discussions reopen REPO_ID NUM— Reopen a closed discussion or pull request.[--comment TEXT --yes --type CHOICE]
hf endpoints — Manage Hugging Face Inference Endpoints.
hf endpoints catalog deploy --repo TEXT— Deploy an Inference Endpoint from the Model Catalog.[--name TEXT --accelerator TEXT --namespace TEXT]hf endpoints catalog list— List available Catalog models.hf endpoints delete NAME— Delete an Inference Endpoint permanently.[--namespace TEXT --yes]hf endpoints deploy NAME --repo TEXT --framework TEXT --accelerator TEXT --instance-size TEXT --instance-type TEXT --region TEXT --vendor TEXT— Deploy an Inference Endpoint from a Hub repository.[--namespace TEXT --task TEXT --min-replica INTEGER --max-replica INTEGER --scale-to-zero-timeout INTEGER --scaling-metric CHOICE --scaling-threshold FLOAT]hf endpoints describe NAME— Get information about an existing endpoint.[--namespace TEXT]hf endpoints list— Lists all Inference Endpoints for the given namespace.[--namespace TEXT --format CHOICE --quiet]hf endpoints pause NAME— Pause an Inference Endpoint.[--namespace TEXT]hf endpoints resume NAME— Resume an Inference Endpoint.[--namespace TEXT --fail-if-already-running]hf endpoints scale-to-zero NAME— Scale an Inference Endpoint to zero.[--namespace TEXT]hf endpoints update NAME— Update an existing endpoint.[--namespace TEXT --repo TEXT --accelerator TEXT --instance-size TEXT --instance-type TEXT --framework TEXT --revision TEXT --task TEXT --min-replica INTEGER --max-replica INTEGER --scale-to-zero-timeout INTEGER --scaling-metric CHOICE --scaling-threshold FLOAT]
hf extensions — Manage hf CLI extensions.
hf extensions exec NAME— Execute an installed extension.hf extensions install REPO_ID— Install an extension from a public GitHub repository.[--force]hf extensions list— List installed extension commands.[--format CHOICE --quiet]hf extensions remove NAME— Remove an installed extension.hf extensions search— Search extensions available on GitHub (tagged with 'hf-extension' topic).[--format CHOICE --quiet]
hf jobs — Run and manage Jobs on the Hub.
hf jobs cancel JOB_ID— Cancel a Job[--namespace TEXT]hf jobs hardware— List available hardware options for Jobshf jobs inspect JOB_IDS— Display detailed information on one or more Jobs[--namespace TEXT]hf jobs logs JOB_ID— Fetch the logs of a Job.[--follow --tail INTEGER --namespace TEXT]hf jobs ps— List Jobs.[--all --namespace TEXT --filter TEXT --format TEXT --quiet]hf jobs run IMAGE COMMAND— Run a Job.[--env TEXT --secrets TEXT --label TEXT --volume TEXT --env-file TEXT --secrets-file TEXT --flavor CHOICE --timeout TEXT --detach --namespace TEXT]hf jobs scheduled delete SCHEDULED_JOB_ID— Delete a scheduled Job.[--namespace TEXT]hf jobs scheduled inspect SCHEDULED_JOB_IDS— Display detailed information on one or more scheduled Jobs[--namespace TEXT]hf jobs scheduled ps— List scheduled Jobs[--all --namespace TEXT --filter TEXT --format TEXT --quiet]hf jobs scheduled resume SCHEDULED_JOB_ID— Resume (unpause) a scheduled Job.[--namespace TEXT]hf jobs scheduled run SCHEDULE IMAGE COMMAND— Schedule a Job.[--suspend --concurrency --env TEXT --secrets TEXT --label TEXT --volume TEXT --env-file TEXT --secrets-file TEXT --flavor CHOICE --timeout TEXT --namespace TEXT]hf jobs scheduled suspend SCHEDULED_JOB_ID— Suspend (pause) a scheduled Job.[--namespace TEXT]hf jobs scheduled uv run SCHEDULE SCRIPT— Run a UV script (local file or URL) on HF infrastructure[--suspend --concurrency --image TEXT --flavor CHOICE --env TEXT --secrets TEXT --label TEXT --volume TEXT --env-file TEXT --secrets-file TEXT --timeout TEXT --namespace TEXT --with TEXT --python TEXT]hf jobs stats— Fetch the resource usage statistics and metrics of Jobs[--namespace TEXT]hf jobs uv run SCRIPT— Run a UV script (local file or URL) on HF infrastructure[--image TEXT --flavor CHOICE --env TEXT --secrets TEXT --label TEXT --volume TEXT --env-file TEXT --secrets-file TEXT --timeout TEXT --detach --namespace TEXT --with TEXT --python TEXT]
hf models — Interact with models on the Hub.
hf models info MODEL_ID— Get info about a model on the Hub.[--revision TEXT --expand TEXT --format CHOICE]hf models list— List models on the Hub.[--search TEXT --author TEXT --filter TEXT --num-parameters TEXT --sort CHOICE --limit INTEGER --expand TEXT --format CHOICE]
hf papers — Interact with papers on the Hub.
hf papers info PAPER_ID— Get info about a paper on the Hub.[--format CHOICE]hf papers list— List daily papers on the Hub.[--date TEXT --week TEXT --month TEXT --submitter TEXT --sort CHOICE --limit INTEGER --format CHOICE]hf papers read PAPER_ID— Read a paper as markdown.hf papers search QUERY— Search papers on the Hub.[--limit INTEGER --format CHOICE]
hf repos — Manage repos on the Hub.
hf repos branch create REPO_ID BRANCH— Create a new branch for a repo on the Hub.[--revision TEXT --type CHOICE --exist-ok]hf repos branch delete REPO_ID BRANCH— Delete a branch from a repo on the Hub.[--type CHOICE]hf repos create REPO_ID— Create a new repo on the Hub.[--type CHOICE --space-sdk TEXT --private --public --protected --exist-ok --resource-group-id TEXT --flavor CHOICE --storage CHOICE --sleep-time INTEGER --secrets TEXT --secrets-file TEXT --env TEXT --env-file TEXT --volume TEXT]hf repos delete REPO_ID— Delete a repo from the Hub. This is an irreversible operation.[--type CHOICE --missing-ok]hf repos delete-files REPO_ID PATTERNS— Delete files from a repo on the Hub.[--type CHOICE --revision TEXT --commit-message TEXT --commit-description TEXT --create-pr]hf repos duplicate FROM_ID— Duplicate a repo on the Hub (model, dataset, or Space).[--type CHOICE --private --public --protected --exist-ok --flavor CHOICE --storage CHOICE --sleep-time INTEGER --secrets TEXT --secrets-file TEXT --env TEXT --env-file TEXT --volume TEXT]hf repos move FROM_ID TO_ID— Move a repository from a namespace to another namespace.[--type CHOICE]hf repos settings REPO_ID— Update the settings of a repository.[--gated CHOICE --private --public --protected --type CHOICE]hf repos tag create REPO_ID TAG— Create a tag for a repo.[--message TEXT --revision TEXT --type CHOICE]hf repos tag delete REPO_ID TAG— Delete a tag for a repo.[--yes --type CHOICE]hf repos tag list REPO_ID— List tags for a repo.[--type CHOICE]
hf skills — Manage skills for AI assistants.
hf skills add— Download a Hugging Face skill and install it for an AI assistant.[--claude --global --dest PATH --force]hf skills preview— Print the generatedhf-cliSKILL.md to stdout.hf skills upgrade— Upgrade installed Hugging Face marketplace skills.[--claude --global --dest PATH]
hf spaces — Interact with spaces on the Hub.
hf spaces dev-mode SPACE_ID— Enable or disable dev mode on a Space.[--stop]hf spaces hot-reload SPACE_ID— Hot-reload any Python file of a Space without a full rebuild + restart.[--local-file TEXT --skip-checks --skip-summary]hf spaces info SPACE_ID— Get info about a space on the Hub.[--revision TEXT --expand TEXT --format CHOICE]hf spaces list— List spaces on the Hub.[--search TEXT --author TEXT --filter TEXT --sort CHOICE --limit INTEGER --expand TEXT --format CHOICE]
hf webhooks — Manage webhooks on the Hub.
hf webhooks create --watch TEXT— Create a new webhook.[--url TEXT --job-id TEXT --domain CHOICE --secret TEXT]hf webhooks delete WEBHOOK_ID— Delete a webhook permanently.[--yes]hf webhooks disable WEBHOOK_ID— Disable an active webhook.hf webhooks enable WEBHOOK_ID— Enable a disabled webhook.hf webhooks info WEBHOOK_ID— Show full details for a single webhook as JSON.hf webhooks list— List all webhooks for the current user.[--format CHOICE --quiet]hf webhooks update WEBHOOK_ID— Update an existing webhook. Only provided options are changed.[--url TEXT --watch TEXT --domain CHOICE --secret TEXT]
Common options
--format— Output format:--format json(or--json) or--format table(default).-q / --quiet— Minimal output.--revision— Git revision id which can be a branch name, a tag, or a commit hash.--token— Use a User Access Token. Prefer settingHF_TOKENenv var instead of passing--token.--type— The type of repository (model, dataset, or space).
Mounting repos as local filesystems
To mount Hub repositories or buckets as local filesystems — no download, no copy, no waiting — use hf-mount. Files are fetched on demand. GitHub: https://github.com/huggingface/hf-mount
Install: curl -fsSL https://raw.githubusercontent.com/huggingface/hf-mount/main/install.sh | sh
Some command examples:
hf-mount start repo openai-community/gpt2 /tmp/gpt2— mount a repo (read-only)hf-mount start --hf-token $HF_TOKEN bucket myuser/my-bucket /tmp/data— mount a bucket (read-write)hf-mount status/hf-mount stop /tmp/data— list or unmount
Tips
- Use
hf <command> --helpfor full options, descriptions, usage, and real-world examples - Authenticate with
HF_TOKENenv var (recommended) or with--token
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

