Antigravity-awesome-skills hugging-face-cli
Use the Hugging Face Hub CLI (`hf`) to download, upload, and manage models, datasets, and Spaces.
install
source · Clone the upstream repo
git clone https://github.com/sickn33/antigravity-awesome-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sickn33/antigravity-awesome-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/plugins/antigravity-awesome-skills-claude/skills/hugging-face-cli" ~/.claude/skills/sickn33-antigravity-awesome-skills-hugging-face-cli && rm -rf "$T"
manifest:
plugins/antigravity-awesome-skills-claude/skills/hugging-face-cli/SKILL.mdsafety · automated scan (low risk)
This is a pattern-based risk scan, not a security review. Our crawler flagged:
- makes HTTP requests (curl)
Always read a skill's source content before installing. Patterns alone don't mean the skill is malicious — but they warrant attention.
source content
Install by downloading the installer script first, reviewing it, and then running it locally. Example:
curl -LsSf https://hf.co/cli/install.sh -o /tmp/hf-install.sh && less /tmp/hf-install.sh && bash /tmp/hf-install.sh
When to Use
Use this skill when you need the
hf CLI for Hub authentication, downloads, uploads, repo management, or basic compute operations.
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.8.0. Run hf skills add --force to regenerate.
Commands
— Download files from the Hub.hf download REPO_ID[--type CHOICE --revision TEXT --include TEXT --exclude TEXT --cache-dir TEXT --local-dir TEXT --force-download --dry-run --quiet --max-workers INTEGER]
— Print information about the environment.hf env
— Sync files between local directory and a bucket.hf sync[--delete --ignore-times --ignore-sizes --plan TEXT --apply TEXT --dry-run --include TEXT --exclude TEXT --filter-from TEXT --existing --ignore-existing --verbose --quiet]
— Upload a file or a folder to the Hub. Recommended for single-commit uploads.hf upload REPO_ID[--type CHOICE --revision TEXT --private --include TEXT --exclude TEXT --delete TEXT --commit-message TEXT --commit-description TEXT --create-pr --every FLOAT --quiet]
— Upload a large folder to the Hub. Recommended for resumable uploads.hf upload-large-folder REPO_ID LOCAL_PATH[--type CHOICE --revision TEXT --private --include TEXT --exclude TEXT --num-workers INTEGER --no-report --no-bars]
— Print information about the hf version.hf version
hf auth
— Manage authentication (login, logout, etc.).
hf auth
— List all stored access tokens.hf auth list
— Login using a token from huggingface.co/settings/tokens.hf auth login[--add-to-git-credential --force]
— Logout from a specific token.hf auth logout[--token-name TEXT]
— Switch between access tokens.hf auth switch[--token-name TEXT --add-to-git-credential]
— Find out which huggingface.co account you are logged in as.hf auth whoami[--format CHOICE]
hf buckets
— Commands to interact with buckets.
hf buckets
— Copy a single file to or from a bucket.hf buckets cp SRC[--quiet]
— Create a new bucket.hf buckets create BUCKET_ID[--private --exist-ok --quiet]
— Delete a bucket.hf buckets delete BUCKET_ID[--yes --missing-ok --quiet]
— Get info about a bucket.hf buckets info BUCKET_ID[--quiet]
— List buckets or files in a bucket.hf buckets list[--human-readable --tree --recursive --format CHOICE --quiet]
— Move (rename) a bucket to a new name or namespace.hf buckets move FROM_ID TO_ID
— Remove files from a bucket.hf buckets remove ARGUMENT[--recursive --yes --dry-run --include TEXT --exclude TEXT --quiet]
— Sync files between local directory and a bucket.hf buckets sync[--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 cached repositories or revisions.hf cache list[--cache-dir TEXT --revisions --filter TEXT --format CHOICE --quiet --sort CHOICE --limit INTEGER]
— Remove detached revisions from the cache.hf cache prune[--cache-dir TEXT --yes --dry-run]
— Remove cached repositories or revisions.hf cache rm TARGETS[--cache-dir TEXT --yes --dry-run]
— Verify checksums for a single repo revision from cache or a local directory.hf cache verify REPO_ID[--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 an item to a collection.hf collections add-item COLLECTION_SLUG ITEM_ID ITEM_TYPE[--note TEXT --exists-ok]
— Create a new collection on the Hub.hf collections create TITLE[--namespace TEXT --description TEXT --private --exists-ok]
— Delete a collection from the Hub.hf collections delete COLLECTION_SLUG[--missing-ok]
— Delete an item from a collection.hf collections delete-item COLLECTION_SLUG ITEM_OBJECT_ID[--missing-ok]
— Get info about a collection on the Hub. Output is in JSON format.hf collections info COLLECTION_SLUG
— List collections on the Hub.hf collections list[--owner TEXT --item TEXT --sort CHOICE --limit INTEGER --format CHOICE --quiet]
— Update a collection's metadata on the Hub.hf collections update COLLECTION_SLUG[--title TEXT --description TEXT --position INTEGER --private --theme TEXT]
— Update an item in a collection.hf collections update-item COLLECTION_SLUG ITEM_OBJECT_ID[--note TEXT --position INTEGER]
hf datasets
— Interact with datasets on the Hub.
hf datasets
— Get info about a dataset on the Hub. Output is in JSON format.hf datasets info DATASET_ID[--revision TEXT --expand TEXT]
— List datasets on the Hub.hf datasets list[--search TEXT --author TEXT --filter TEXT --sort CHOICE --limit INTEGER --expand TEXT --format CHOICE --quiet]
— List parquet file URLs available for a dataset.hf datasets parquet DATASET_ID[--subset TEXT --split TEXT --format CHOICE --quiet]
— Execute a raw SQL query with DuckDB against dataset parquet URLs.hf datasets sql SQL[--format CHOICE]
hf discussions
— Manage discussions and pull requests on the Hub.
hf discussions
— Close a discussion or pull request.hf discussions close REPO_ID NUM[--comment TEXT --yes --type CHOICE]
— Comment on a discussion or pull request.hf discussions comment REPO_ID NUM[--body TEXT --body-file PATH --type CHOICE]
— Create a new discussion or pull request on a repo.hf discussions create REPO_ID --title TEXT[--body TEXT --body-file PATH --pull-request --type CHOICE]
— Show the diff of a pull request.hf discussions diff REPO_ID NUM[--type CHOICE]
— Get info about a discussion or pull request.hf discussions info REPO_ID NUM[--comments --diff --no-color --type CHOICE --format CHOICE]
— List discussions and pull requests on a repo.hf discussions list REPO_ID[--status CHOICE --kind CHOICE --author TEXT --limit INTEGER --type CHOICE --format CHOICE --quiet]
— Merge a pull request.hf discussions merge REPO_ID NUM[--comment TEXT --yes --type CHOICE]
— Rename a discussion or pull request.hf discussions rename REPO_ID NUM NEW_TITLE[--type CHOICE]
— Reopen a closed discussion or pull request.hf discussions reopen REPO_ID NUM[--comment TEXT --yes --type CHOICE]
hf endpoints
— Manage Hugging Face Inference Endpoints.
hf endpoints
— Deploy an Inference Endpoint from the Model Catalog.hf endpoints catalog deploy --repo TEXT[--name TEXT --accelerator TEXT --namespace TEXT]
— List available Catalog models.hf endpoints catalog list
— Delete an Inference Endpoint permanently.hf endpoints delete NAME[--namespace TEXT --yes]
— Deploy an Inference Endpoint from a Hub repository.hf endpoints deploy NAME --repo TEXT --framework TEXT --accelerator TEXT --instance-size TEXT --instance-type TEXT --region TEXT --vendor TEXT[--namespace TEXT --task TEXT --min-replica INTEGER --max-replica INTEGER --scale-to-zero-timeout INTEGER --scaling-metric CHOICE --scaling-threshold FLOAT]
— Get information about an existing endpoint.hf endpoints describe NAME[--namespace TEXT]
— Lists all Inference Endpoints for the given namespace.hf endpoints list[--namespace TEXT --format CHOICE --quiet]
— Pause an Inference Endpoint.hf endpoints pause NAME[--namespace TEXT]
— Resume an Inference Endpoint.hf endpoints resume NAME[--namespace TEXT --fail-if-already-running]
— Scale an Inference Endpoint to zero.hf endpoints scale-to-zero NAME[--namespace TEXT]
— Update an existing endpoint.hf endpoints update NAME[--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
— Execute an installed extension.hf extensions exec NAME
— Install an extension from a public GitHub repository.hf extensions install REPO_ID[--force]
— List installed extension commands.hf extensions list[--format CHOICE --quiet]
— Remove an installed extension.hf extensions remove NAME
— Search extensions available on GitHub (tagged with 'hf-extension' topic).hf extensions search[--format CHOICE --quiet]
hf jobs
— Run and manage Jobs on the Hub.
hf jobs
— Cancel a Jobhf jobs cancel JOB_ID[--namespace TEXT]
— List available hardware options for Jobshf jobs hardware
— Display detailed information on one or more Jobshf jobs inspect JOB_IDS[--namespace TEXT]
— Fetch the logs of a Job.hf jobs logs JOB_ID[--follow --tail INTEGER --namespace TEXT]
— List Jobs.hf jobs ps[--all --namespace TEXT --filter TEXT --format TEXT --quiet]
— Run a Job.hf jobs run IMAGE COMMAND[--env TEXT --secrets TEXT --label TEXT --volume TEXT --env-file TEXT --secrets-file TEXT --flavor CHOICE --timeout TEXT --detach --namespace TEXT]
— Delete a scheduled Job.hf jobs scheduled delete SCHEDULED_JOB_ID[--namespace TEXT]
— Display detailed information on one or more scheduled Jobshf jobs scheduled inspect SCHEDULED_JOB_IDS[--namespace TEXT]
— List scheduled Jobshf jobs scheduled ps[--all --namespace TEXT --filter TEXT --format TEXT --quiet]
— Resume (unpause) a scheduled Job.hf jobs scheduled resume SCHEDULED_JOB_ID[--namespace TEXT]
— Schedule a Job.hf jobs scheduled run SCHEDULE IMAGE COMMAND[--suspend --concurrency --env TEXT --secrets TEXT --label TEXT --volume TEXT --env-file TEXT --secrets-file TEXT --flavor CHOICE --timeout TEXT --namespace TEXT]
— Suspend (pause) a scheduled Job.hf jobs scheduled suspend SCHEDULED_JOB_ID[--namespace TEXT]
— Run a UV script (local file or URL) on HF infrastructurehf jobs scheduled uv run SCHEDULE SCRIPT[--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]
— Fetch the resource usage statistics and metrics of Jobshf jobs stats[--namespace TEXT]
— Run a UV script (local file or URL) on HF infrastructurehf jobs uv run SCRIPT[--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
— Get info about a model on the Hub. Output is in JSON format.hf models info MODEL_ID[--revision TEXT --expand TEXT]
— List models on the Hub.hf models list[--search TEXT --author TEXT --filter TEXT --num-parameters TEXT --sort CHOICE --limit INTEGER --expand TEXT --format CHOICE --quiet]
hf papers
— Interact with papers on the Hub.
hf papers
— Get info about a paper on the Hub. Output is in JSON format.hf papers info PAPER_ID
— List daily papers on the Hub.hf papers list[--date TEXT --week TEXT --month TEXT --submitter TEXT --sort CHOICE --limit INTEGER --format CHOICE --quiet]
— Read a paper as markdown.hf papers read PAPER_ID
— Search papers on the Hub.hf papers search QUERY[--limit INTEGER --format CHOICE --quiet]
hf repos
— Manage repos on the Hub.
hf repos
— Create a new branch for a repo on the Hub.hf repos branch create REPO_ID BRANCH[--revision TEXT --type CHOICE --exist-ok]
— Delete a branch from a repo on the Hub.hf repos branch delete REPO_ID BRANCH[--type CHOICE]
— Create a new repo on the Hub.hf repos create REPO_ID[--type CHOICE --space-sdk TEXT --private --public --protected --exist-ok --resource-group-id TEXT --flavor TEXT --storage TEXT --sleep-time INTEGER --secrets TEXT --secrets-file TEXT --env TEXT --env-file TEXT]
— Delete a repo from the Hub. This is an irreversible operation.hf repos delete REPO_ID[--type CHOICE --missing-ok]
— Delete files from a repo on the Hub.hf repos delete-files REPO_ID PATTERNS[--type CHOICE --revision TEXT --commit-message TEXT --commit-description TEXT --create-pr]
— Duplicate a repo on the Hub (model, dataset, or Space).hf repos duplicate FROM_ID[--type CHOICE --private --public --protected --exist-ok --flavor TEXT --storage TEXT --sleep-time INTEGER --secrets TEXT --secrets-file TEXT --env TEXT --env-file TEXT]
— Move a repository from a namespace to another namespace.hf repos move FROM_ID TO_ID[--type CHOICE]
— Update the settings of a repository.hf repos settings REPO_ID[--gated CHOICE --private --public --protected --type CHOICE]
— Create a tag for a repo.hf repos tag create REPO_ID TAG[--message TEXT --revision TEXT --type CHOICE]
— Delete a tag for a repo.hf repos tag delete REPO_ID TAG[--yes --type CHOICE]
— List tags for a repo.hf repos tag list REPO_ID[--type CHOICE]
hf skills
— Manage skills for AI assistants.
hf skills
— Download a skill and install it for an AI assistant.hf skills add[--claude --codex --cursor --opencode --global --dest PATH --force]
— Print the generated SKILL.md to stdout.hf skills preview
hf spaces
— Interact with spaces on the Hub.
hf spaces
— Enable or disable dev mode on a Space.hf spaces dev-mode SPACE_ID[--stop]
— Hot-reload any Python file of a Space without a full rebuild + restart.hf spaces hot-reload SPACE_ID[--local-file TEXT --skip-checks --skip-summary]
— Get info about a space on the Hub. Output is in JSON format.hf spaces info SPACE_ID[--revision TEXT --expand TEXT]
— List spaces on the Hub.hf spaces list[--search TEXT --author TEXT --filter TEXT --sort CHOICE --limit INTEGER --expand TEXT --format CHOICE --quiet]
hf webhooks
— Manage webhooks on the Hub.
hf webhooks
— Create a new webhook.hf webhooks create --watch TEXT[--url TEXT --job-id TEXT --domain CHOICE --secret TEXT]
— Delete a webhook permanently.hf webhooks delete WEBHOOK_ID[--yes]
— Disable an active webhook.hf webhooks disable WEBHOOK_ID
— Enable a disabled webhook.hf webhooks enable WEBHOOK_ID
— Show full details for a single webhook as JSON.hf webhooks info WEBHOOK_ID
— List all webhooks for the current user.hf webhooks list[--format CHOICE --quiet]
— Update an existing webhook. Only provided options are changed.hf webhooks update WEBHOOK_ID[--url TEXT --watch TEXT --domain CHOICE --secret TEXT]
Common options
— Output format:--format
(or--format json
) or--json
(default).--format table
— Minimal output.-q / --quiet
— Git revision id which can be a branch name, a tag, or a commit hash.--revision
— Use a User Access Token. Prefer setting--token
env var instead of passingHF_TOKEN
.--token
— The type of repository (model, dataset, or space).--type
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 by downloading the installer locally, reviewing it, and then running it. Example:
curl -fsSL https://raw.githubusercontent.com/huggingface/hf-mount/main/install.sh -o /tmp/hf-mount-install.sh && less /tmp/hf-mount-install.sh && sh /tmp/hf-mount-install.sh
Some command examples:
— mount a repo (read-only)hf-mount start repo openai-community/gpt2 /tmp/gpt2
— mount a bucket (read-write)hf-mount start --hf-token $HF_TOKEN bucket myuser/my-bucket /tmp/data
/hf-mount status
— list or unmounthf-mount stop /tmp/data
Tips
- Use
for full options, descriptions, usage, and real-world exampleshf <command> --help - Authenticate with
env var (recommended) or withHF_TOKEN--token
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.