All apps/Hugging Face Hub CLI

Hugging Face Hub CLI

hf

The Hugging Face Hub CLI.

Runs as hf|macOS, Linux, Windows|huggingface.co

Command form

ai-draft · 3 tasks · 9 fields

Download files or whole repositories from the Hub with hf download. Other hf commands and hf:// URIs are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui hf

hf download

Download from the Hub

Download a model, dataset or Space, or only some of its files, into the cache or a local folder.

Download from the HubExample values, fixed in this page — nothing here reaches a terminal
Basic
Repository ID*
string
Repository type
string
Revision
string
Local folder
directory
TasksEach one presets the form for one job
Download a repository
repo_idrepo_typerevisionlocal_dir
Download selected files
repo_idfilenamesincludeexcludelocal_dir
Preview a download
repo_idrepo_typedry_run
ParametersOnly these flags are editable in the form
Repository ID
For example gpt2 or HuggingFaceH4/zephyr-7b-beta.
string · positional 0
Files
Specific files in the repo; leave empty for the whole repository.
string · positional 1 · repeatable
Repository type
string
--repo-typemodeldatasetspace
Revision
Commit hash, branch name or tag.
string
--revision
Include pattern
string · repeatable
--include
Exclude pattern
string · repeatable
--exclude
Local folder
path
--local-dir
Cache directory
path
--cache-dir
Dry run
List the files that would be downloaded without downloading.
boolean
--dry-run
SourcesEvery flag above is checked against these
docs
>>> hf download gpt2 config.json model.safetensors >>> hf download stabilityai/stable-diffusion-xl-base-1.0 --include "*.safetensors" --exclude "*.fp16.*"* >>> hf download HuggingFaceH4/ultrachat_200k --repo-type dataset >>> hf download bigcode/the-stack --repo-type dataset --revision v1.1 >>> hf download adept/fuyu-8b model-00001-of-00002.safetensors --loca…
manual2026-10-27

huggingface.co

Before it fills your prompt, Otty checks the installed hf against its version. A form that does not match your version is not offered.