[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-145eff4b-520d-4015-a022-f29cab636e0b":3,"$f6qPJqOtcMrtXXpjqPrmHR_tYGE3f1WwRC7xu-PIGCxs":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"145eff4b-520d-4015-a022-f29cab636e0b","hugging-face-cli","使用Hugging Face Hub CLI（`hf`）下载、上传和管理模型、数据集和Spaces。","cat_life_career","mod_other","sickn33,other","---\nsource: \"https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Fskills\u002Ftree\u002Fmain\u002Fskills\u002Fhf-cli\"\nname: hugging-face-cli\ndescription: \"Use the Hugging Face Hub CLI (`hf`) to download, upload, and manage models, datasets, and Spaces.\"\nrisk: unknown\n---\n\nInstall by downloading the installer script first, reviewing it, and then running it locally. Example:\n`curl -LsSf https:\u002F\u002Fhf.co\u002Fcli\u002Finstall.sh -o \u002Ftmp\u002Fhf-install.sh && less \u002Ftmp\u002Fhf-install.sh && bash \u002Ftmp\u002Fhf-install.sh`\n\n## When to Use\nUse this skill when you need the `hf` CLI for Hub authentication, downloads, uploads, repo management, or basic compute operations.\n\nThe Hugging Face Hub CLI tool `hf` is available. IMPORTANT: The `hf` command replaces the deprecated `huggingface-cli` command.\n\nUse `hf --help` to view available functions. Note that auth commands are now all under `hf auth` e.g. `hf auth whoami`.\n\nGenerated with `huggingface_hub v1.8.0`. Run `hf skills add --force` to regenerate.\n\n## Commands\n\n- `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]`\n- `hf env` — Print information about the environment.\n- `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]`\n- `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]`\n- `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]`\n- `hf version` — Print information about the hf version.\n\n### `hf auth` — Manage authentication (login, logout, etc.).\n\n- `hf auth list` — List all stored access tokens.\n- `hf auth login` — Login using a token from huggingface.co\u002Fsettings\u002Ftokens. `[--add-to-git-credential --force]`\n- `hf auth logout` — Logout from a specific token. `[--token-name TEXT]`\n- `hf auth switch` — Switch between access tokens. `[--token-name TEXT --add-to-git-credential]`\n- `hf auth whoami` — Find out which huggingface.co account you are logged in as. `[--format CHOICE]`\n\n### `hf buckets` — Commands to interact with buckets.\n\n- `hf buckets cp SRC` — Copy a single file to or from a bucket. `[--quiet]`\n- `hf buckets create BUCKET_ID` — Create a new bucket. `[--private --exist-ok --quiet]`\n- `hf buckets delete BUCKET_ID` — Delete a bucket. `[--yes --missing-ok --quiet]`\n- `hf buckets info BUCKET_ID` — Get info about a bucket. `[--quiet]`\n- `hf buckets list` — List buckets or files in a bucket. `[--human-readable --tree --recursive --format CHOICE --quiet]`\n- `hf buckets move FROM_ID TO_ID` — Move (rename) a bucket to a new name or namespace.\n- `hf buckets remove ARGUMENT` — Remove files from a bucket. `[--recursive --yes --dry-run --include TEXT --exclude TEXT --quiet]`\n- `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]`\n\n### `hf cache` — Manage local cache directory.\n\n- `hf cache list` — List cached repositories or revisions. `[--cache-dir TEXT --revisions --filter TEXT --format CHOICE --quiet --sort CHOICE --limit INTEGER]`\n- `hf cache prune` — Remove detached revisions from the cache. `[--cache-dir TEXT --yes --dry-run]`\n- `hf cache rm TARGETS` — Remove cached repositories or revisions. `[--cache-dir TEXT --yes --dry-run]`\n- `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]`\n\n### `hf collections` — Interact with collections on the Hub.\n\n- `hf collections add-item COLLECTION_SLUG ITEM_ID ITEM_TYPE` — Add an item to a collection. `[--note TEXT --exists-ok]`\n- `hf collections create TITLE` — Create a new collection on the Hub. `[--namespace TEXT --description TEXT --private --exists-ok]`\n- `hf collections delete COLLECTION_SLUG` — Delete a collection from the Hub. `[--missing-ok]`\n- `hf collections delete-item COLLECTION_SLUG ITEM_OBJECT_ID` — Delete an item from a collection. `[--missing-ok]`\n- `hf collections info COLLECTION_SLUG` — Get info about a collection on the Hub. Output is in JSON format.\n- `hf collections list` — List collections on the Hub. `[--owner TEXT --item TEXT --sort CHOICE --limit INTEGER --format CHOICE --quiet]`\n- `hf collections update COLLECTION_SLUG` — Update a collection's metadata on the Hub. `[--title TEXT --description TEXT --position INTEGER --private --theme TEXT]`\n- `hf collections update-item COLLECTION_SLUG ITEM_OBJECT_ID` — Update an item in a collection. `[--note TEXT --position INTEGER]`\n\n### `hf datasets` — Interact with datasets on the Hub.\n\n- `hf datasets info DATASET_ID` — Get info about a dataset on the Hub. Output is in JSON format. `[--revision TEXT --expand TEXT]`\n- `hf datasets list` — List datasets on the Hub. `[--search TEXT --author TEXT --filter TEXT --sort CHOICE --limit INTEGER --expand TEXT --format CHOICE --quiet]`\n- `hf datasets parquet DATASET_ID` — List parquet file URLs available for a dataset. `[--subset TEXT --split TEXT --format CHOICE --quiet]`\n- `hf datasets sql SQL` — Execute a raw SQL query with DuckDB against dataset parquet URLs. `[--format CHOICE]`\n\n### `hf discussions` — Manage discussions and pull requests on the Hub.\n\n- `hf discussions close REPO_ID NUM` — Close a discussion or pull request. `[--comment TEXT --yes --type CHOICE]`\n- `hf discussions comment REPO_ID NUM` — Comment on a discussion or pull request. `[--body TEXT --body-file PATH --type CHOICE]`\n- `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]`\n- `hf discussions diff REPO_ID NUM` — Show the diff of a pull request. `[--type CHOICE]`\n- `hf discussions info REPO_ID NUM` — Get info about a discussion or pull request. `[--comments --diff --no-color --type CHOICE --format CHOICE]`\n- `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]`\n- `hf discussions merge REPO_ID NUM` — Merge a pull request. `[--comment TEXT --yes --type CHOICE]`\n- `hf discussions rename REPO_ID NUM NEW_TITLE` — Rename a discussion or pull request. `[--type CHOICE]`\n- `hf discussions reopen REPO_ID NUM` — Reopen a closed discussion or pull request. `[--comment TEXT --yes --type CHOICE]`\n\n### `hf endpoints` — Manage Hugging Face Inference Endpoints.\n\n- `hf endpoints catalog deploy --repo TEXT` — Deploy an Inference Endpoint from the Model Catalog. `[--name TEXT --accelerator TEXT --namespace TEXT]`\n- `hf endpoints catalog list` — List available Catalog models.\n- `hf endpoints delete NAME` — Delete an Inference Endpoint permanently. `[--namespace TEXT --yes]`\n- `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]`\n- `hf endpoints describe NAME` — Get information about an existing endpoint. `[--namespace TEXT]`\n- `hf endpoints list` — Lists all Inference Endpoints for the given namespace. `[--namespace TEXT --format CHOICE --quiet]`\n- `hf endpoints pause NAME` — Pause an Inference Endpoint. `[--namespace TEXT]`\n- `hf endpoints resume NAME` — Resume an Inference Endpoint. `[--namespace TEXT --fail-if-already-running]`\n- `hf endpoints scale-to-zero NAME` — Scale an Inference Endpoint to zero. `[--namespace TEXT]`\n- `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]`\n\n### `hf extensions` — Manage hf CLI extensions.\n\n- `hf extensions exec NAME` — Execute an installed extension.\n- `hf extensions install REPO_ID` — Install an extension from a public GitHub repository. `[--force]`\n- `hf extensions list` — List installed extension commands. `[--format CHOICE --quiet]`\n- `hf extensions remove NAME` — Remove an installed extension.\n- `hf extensions search` — Search extensions available on GitHub (tagged with 'hf-extension' topic). `[--format CHOICE --quiet]`\n\n### `hf jobs` — Run and manage Jobs on the Hub.\n\n- `hf jobs cancel JOB_ID` — Cancel a Job `[--namespace TEXT]`\n- `hf jobs hardware` — List available hardware options for Jobs\n- `hf jobs inspect JOB_IDS` — Display detailed information on one or more Jobs `[--namespace TEXT]`\n- `hf jobs logs JOB_ID` — Fetch the logs of a Job. `[--follow --tail INTEGER --namespace TEXT]`\n- `hf jobs ps` — List Jobs. `[--all --namespace TEXT --filter TEXT --format TEXT --quiet]`\n- `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]`\n- `hf jobs scheduled delete SCHEDULED_JOB_ID` — Delete a scheduled Job. `[--namespace TEXT]`\n- `hf jobs scheduled inspect SCHEDULED_JOB_IDS` — Display detailed information on one or more scheduled Jobs `[--namespace TEXT]`\n- `hf jobs scheduled ps` — List scheduled Jobs `[--all --namespace TEXT --filter TEXT --format TEXT --quiet]`\n- `hf jobs scheduled resume SCHEDULED_JOB_ID` — Resume (unpause) a scheduled Job. `[--namespace TEXT]`\n- `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]`\n- `hf jobs scheduled suspend SCHEDULED_JOB_ID` — Suspend (pause) a scheduled Job. `[--namespace TEXT]`\n- `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]`\n- `hf jobs stats` — Fetch the resource usage statistics and metrics of Jobs `[--namespace TEXT]`\n- `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]`\n\n### `hf models` — Interact with models on the Hub.\n\n- `hf models info MODEL_ID` — Get info about a model on the Hub. Output is in JSON format. `[--revision TEXT --expand TEXT]`\n- `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 --quiet]`\n\n### `hf papers` — Interact with papers on the Hub.\n\n- `hf papers info PAPER_ID` — Get info about a paper on the Hub. Output is in JSON format.\n- `hf papers list` — List daily papers on the Hub. `[--date TEXT --week TEXT --month TEXT --submitter TEXT --sort CHOICE --limit INTEGER --format CHOICE --quiet]`\n- `hf papers read PAPER_ID` — Read a paper as markdown.\n- `hf papers search QUERY` — Search papers on the Hub. `[--limit INTEGER --format CHOICE --quiet]`\n\n### `hf repos` — Manage repos on the Hub.\n\n- `hf repos branch create REPO_ID BRANCH` — Create a new branch for a repo on the Hub. `[--revision TEXT --type CHOICE --exist-ok]`\n- `hf repos branch delete REPO_ID BRANCH` — Delete a branch from a repo on the Hub. `[--type CHOICE]`\n- `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 TEXT --storage TEXT --sleep-time INTEGER --secrets TEXT --secrets-file TEXT --env TEXT --env-file TEXT]`\n- `hf repos delete REPO_ID` — Delete a repo from the Hub. This is an irreversible operation. `[--type CHOICE --missing-ok]`\n- `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]`\n- `hf repos duplicate FROM_ID` — Duplicate a repo on the Hub (model, dataset, or Space). `[--type CHOICE --private --public --protected --exist-ok --flavor TEXT --storage TEXT --sleep-time INTEGER --secrets TEXT --secrets-file TEXT --env TEXT --env-file TEXT]`\n- `hf repos move FROM_ID TO_ID` — Move a repository from a namespace to another namespace. `[--type CHOICE]`\n- `hf repos settings REPO_ID` — Update the settings of a repository. `[--gated CHOICE --private --public --protected --type CHOICE]`\n- `hf repos tag create REPO_ID TAG` — Create a tag for a repo. `[--message TEXT --revision TEXT --type CHOICE]`\n- `hf repos tag delete REPO_ID TAG` — Delete a tag for a repo. `[--yes --type CHOICE]`\n- `hf repos tag list REPO_ID` — List tags for a repo. `[--type CHOICE]`\n\n### `hf skills` — Manage skills for AI assistants.\n\n- `hf skills add` — Download a skill and install it for an AI assistant. `[--claude --codex --cursor --opencode --global --dest PATH --force]`\n- `hf skills preview` — Print the generated SKILL.md to stdout.\n\n### `hf spaces` — Interact with spaces on the Hub.\n\n- `hf spaces dev-mode SPACE_ID` — Enable or disable dev mode on a Space. `[--stop]`\n- `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]`\n- `hf spaces info SPACE_ID` — Get info about a space on the Hub. Output is in JSON format. `[--revision TEXT --expand TEXT]`\n- `hf spaces list` — List spaces on the Hub. `[--search TEXT --author TEXT --filter TEXT --sort CHOICE --limit INTEGER --expand TEXT --format CHOICE --quiet]`\n\n### `hf webhooks` — Manage webhooks on the Hub.\n\n- `hf webhooks create --watch TEXT` — Create a new webhook. `[--url TEXT --job-id TEXT --domain CHOICE --secret TEXT]`\n- `hf webhooks delete WEBHOOK_ID` — Delete a webhook permanently. `[--yes]`\n- `hf webhooks disable WEBHOOK_ID` — Disable an active webhook.\n- `hf webhooks enable WEBHOOK_ID` — Enable a disabled webhook.\n- `hf webhooks info WEBHOOK_ID` — Show full details for a single webhook as JSON.\n- `hf webhooks list` — List all webhooks for the current user. `[--format CHOICE --quiet]`\n- `hf webhooks update WEBHOOK_ID` — Update an existing webhook. Only provided options are changed. `[--url TEXT --watch TEXT --domain CHOICE --secret TEXT]`\n\n## Common options\n\n- `--format` — Output format: `--format json` (or `--json`) or `--format table` (default).\n- `-q \u002F --quiet` — Minimal output.\n- `--revision` — Git revision id which can be a branch name, a tag, or a commit hash.\n- `--token` — Use a User Access Token. Prefer setting `HF_TOKEN` env var instead of passing `--token`.\n- `--type` — The type of repository (model, dataset, or space).\n\n## Mounting repos as local filesystems\n\nTo mount Hub repositories or buckets as local filesystems — no download, no copy, no waiting — use `hf-mount`. Files are fetched on demand. GitHub: https:\u002F\u002Fgithub.com\u002Fhuggingface\u002Fhf-mount\n\nInstall by downloading the installer locally, reviewing it, and then running it. Example:\n`curl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fhuggingface\u002Fhf-mount\u002Fmain\u002Finstall.sh -o \u002Ftmp\u002Fhf-mount-install.sh && less \u002Ftmp\u002Fhf-mount-install.sh && sh \u002Ftmp\u002Fhf-mount-install.sh`\n\nSome command examples:\n- `hf-mount start repo openai-community\u002Fgpt2 \u002Ftmp\u002Fgpt2` — mount a repo (read-only)\n- `hf-mount start --hf-token $HF_TOKEN bucket myuser\u002Fmy-bucket \u002Ftmp\u002Fdata` — mount a bucket (read-write)\n- `hf-mount status` \u002F `hf-mount stop \u002Ftmp\u002Fdata` — list or unmount\n\n## Tips\n\n- Use `hf \u003Ccommand> --help` for full options, descriptions, usage, and real-world examples\n- Authenticate with `HF_TOKEN` env var (recommended) or with `--token`\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,75,604,"2026-05-16 13:22:28",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"其他","other","mdi-page-next-outline","其他类型Skill",5,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"职场发展","career","mdi-briefcase-outline","面试准备、简历优化、职业规划",4,575,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"8ce0bc98-ea9b-4e0e-8f28-4242decd16ae","1.0.0","hugging-face-cli.zip",4708,"uploads\u002Fskills\u002F145eff4b-520d-4015-a022-f29cab636e0b\u002Fhugging-face-cli.zip","b634552d368a67e610777dc3057faafecc16313e341d056510c2819ffe032542","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":17073}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]