You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 62b8e19
Browse filesBrowse the repository at this point in the historyBrowse files
* [CLI] Install and refresh the hf-cli skill from installer, update and hints
- installer: opt-in `--include-skills` / `-IncludeSkills` runs `hf skills add hf-cli -g --claude`
- `hf update`: refreshes the globally installed hf-cli skill (subprocess, new code on disk)
- `hf <anything>`: suggests `hf skills add`/`hf skills update` at most once a day, never auto-installs
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
* [CLI] Drop the removal disclaimer from the installer skill step
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
* [CLI] Move skills directories to the global constants
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
* [CI] Check the installers with --include-skills
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
* [CLI] Clarify skill install/update wording in docs
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
* Update docs/source/en/guides/cli.md
* [CLI] Make the installer skill install opt-out (--exclude-skill)
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
* [CLI] Drop the hf-cli skill from installer uninstall instructions
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
* [CLI] Don't reinstall the hf-cli skill on `hf update` if opted out
`hf update` re-runs the standalone installer, which now installs the skill by
default. Check whether the skill is installed globally first and pass
--exclude-skill / -ExcludeSkill when it isn't, so an opt-out is not silently
undone.
Also fixes flag passing for the PowerShell installer: `iwr ... | iex -Flag`
cannot take parameters, use a scriptblock instead.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
* [CLI] Skip the daily skill hint on `hf update`
`hf update` handles the `hf-cli` skill itself, so the startup hint was either
redundant (same `hf skills add` suggestion) or contradictory (suggesting a
manual update right before doing it).
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
* [CLI] Address review: symlink fallback on Windows, skip skill hint on dev/rc
- `hf skills add --claude` falls back to a copy when symlinks aren't available
(Windows without Developer Mode / admin rights). `hf skills update` walks both
roots, so the copy stays in sync.
- The daily 'skill is not installed' hint is skipped on pre-release / dev versions,
same rule as the PyPI update check.
* [CLI] Drop the two extra skill tests added in the previous commit
Keeps only the necessary change to `test_hints_to_add_when_not_installed`: it must pin
`__version__` to a stable value, otherwise the dev version now short-circuits the hint.
* Update src/huggingface_hub/cli/skills.py
---------
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: Celina Hanouti <[email protected]>
The installer also installs the [`hf-cli` skill](https://huggingface.co/docs/hub/agents-cli) globally, for Claude Code and any agent reading `~/.agents/skills`. Pass `--exclude-skill` to skip it:
Once installed, you can check that the CLI is correctly set up:
41
52
42
53
```bash
@@ -122,7 +133,7 @@ To upgrade to the latest version, run:
122
133
>>> hf update
123
134
```
124
135
125
-
This detects how `hf` was installed (Homebrew, standalone installer, or pip) and runs the matching update command.
136
+
This detects how `hf` was installed (Homebrew, standalone installer, or pip) and runs the matching update command. If the `hf-cli` skill is installed globally, it is refreshed as well so agents see the new command surface. If it isn't, it stays uninstalled: updating never brings it back if you skipped or removed it.
126
137
127
138
By default, the CLI also prints a one-line yellow warning to stderr when a newer version is available on PyPI. To silence it (e.g. in offline CI), set `HF_HUB_DISABLE_UPDATE_CHECK=1`.
Copy file name to clipboardExpand all lines: docs/source/en/package_reference/environment_variables.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -185,7 +185,9 @@ You can set `HF_HUB_DISABLE_TELEMETRY=1` as environment variable to globally dis
185
185
186
186
By default, the `hf` CLI checks PyPI for a newer release at startup (at most once every 24 hours) and prints a one-line yellow warning to stderr when one is available, suggesting `hf update`. The check is already a no-op on dev and pre-release versions.
187
187
188
-
Set `HF_HUB_DISABLE_UPDATE_CHECK=1` to skip the PyPI request and silence the warning entirely. Useful in offline CI environments or when you prefer a quieter shell output.
188
+
It also checks (at most once every 24 hours, purely locally) whether the `hf-cli` skill is installed and generated by the running version, and suggests `hf skills add` / `hf skills update` if not. The check only prints a hint, it never touches your skills directories.
189
+
190
+
Set `HF_HUB_DISABLE_UPDATE_CHECK=1` to skip the PyPI request and silence both hints entirely. Useful in offline CI environments or when you prefer a quieter shell output.
0 commit comments