Hf cli

From sediman-agent/OpenSkynet · View interactive version

Hf cli is an AI agent skill from the GitHub repository sediman-agent/OpenSkynet. 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 infrastruc

How to use this skill

Skill file

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.17.0. Run hf skills add --force to regenerate.

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.

`hf extensions` — Manage hf CLI extensions.

`hf jobs` — Run and manage Jobs on the Hub.

`hf models` — Interact with models on the Hub.

`hf papers` — Interact with papers on the Hub.

`hf repos` — Manage repos on the Hub.

`hf skills` — Manage skills for AI assistants.

`hf spaces` — Interact with spaces on the Hub.

`hf webhooks` — Manage webhooks on the Hub.

Common options

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:

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.