hf-cli
O que ela faz
Esta skill permite que a IA use a ferramenta hf para trabalhar com o Hub da Hugging Face. É para pessoas que baixam ou compartilham modelos de IA, datasets e demos e querem que o agente cuide dessas etapas.
Quando usar
- ✓Quando você quer baixar um modelo, dataset ou Space do Hub da Hugging Face.
- ✓Quando você quer enviar arquivos ou uma pasta para um repositório do Hub.
- ✓Quando você precisa gerenciar o cache local, fazer login ou verificar sua conta no Hub.
Link da skill
https://github.com/huggingface/skills/blob/main/skills/hf-cli/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Baixe os arquivos do modelo deste repositório da Hugging Face para a minha pasta e mostre o nome da minha conta para eu confirmar que estou conectado.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA executa a ferramenta hf, que cuida do login, dos downloads, dos envios e do gerenciamento do cache. Ela lê a ajuda embutida da ferramenta para escolher o comando certo para cada tarefa.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Ela substitui o antigo comando huggingface-cli?
Sim. O comando hf substitui o comando huggingface-cli, que foi descontinuado.
Como verifico se estou conectado?
Os comandos de autenticação ficam agrupados em hf auth, como hf auth whoami, que mostra a sua conta.
Ela consegue executar jobs na Hugging Face?
Sim. Pode executar e agendar jobs na infraestrutura da Hugging Face, além de gerenciar buckets e repositórios.
Detalhes
Descrição original do 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
Popularidade
- Estrelas no GitHub
- 11 mil
- Posição no ranking
- #11765
- Licença
- Apache-2.0
- Atualizada em
- 30/10/2026
Comentários
- …
Mais skills deste repositório
hf-cloud-aws-context-discovery
11 milAjuda seu agente a encontrar seu perfil, região e dados da conta AWS antes de qualquer trabalho na nuvem, para que ele não adivinhe qual conta usar.
hf-cloud-python-env-setup
11 milAjuda seu agente a montar um ambiente Python limpo, com uma versão adequada e bibliotecas atuais, antes de executar automações do SageMaker ou da AWS.
hf-cloud-sagemaker-deployment-planner
11 milAjuda seu agente a planejar a implantação de um modelo no Amazon SageMaker, escolhendo hospedagem em tempo real, sem servidor, assíncrona ou em lote, com padrões sensatos.
hf-cloud-sagemaker-iam-preflight
11 milAjuda seu agente a confirmar que existe um papel de execução do SageMaker utilizável antes de implantar, em vez de criar novas permissões na sua conta da AWS sem verificar.
Skills parecidas
pytorch-patterns
280 milAjuda seu agente a usar PyTorch para criar modelos de aprendizado de máquina. Aplica boas práticas para treinar de forma eficiente e consistente.
evm-token-decimals
280 milAjuda seu agente a evitar erros com números decimais em diferentes redes blockchain. Garante que os valores de tokens sejam precisos em transações e cálculos.
ito-inference
280 milFaz seu agente verificar a disponibilidade de modelos de IA para uso. Ele conecta o pedido de computação com o serviço de modelo pronto.