Skip to content

[CLI] Improving a bit hf CLI discoverability#4079

Merged
hanouticelina merged 2 commits intomainfrom
cli-deprecated-huggingface-cli
Apr 9, 2026
Merged

[CLI] Improving a bit hf CLI discoverability#4079
hanouticelina merged 2 commits intomainfrom
cli-deprecated-huggingface-cli

Conversation

@hanouticelina
Copy link
Copy Markdown
Contributor

context: https://huggingface.slack.com/archives/C02V5EA0A95/p1775740441588749

This PR adds a deprecation warning when running the old deprecated huggingface-cli CLI, pointing to hf with install methods and real usage examples. If hf is already installed, it says so and checks for updates

> huggingface-cli
Warning: `huggingface-cli` is deprecated and no longer works. Use `hf` instead.

Hint: `hf` is already installed! Use it directly.

Hint: Examples:
 hf auth login
 hf download unsloth/gemma-4-31B-it-GGUF
 hf upload my-cool-model . .
 hf models ls --search "gemma"
 hf repos ls --format json
 hf jobs run python:3.12 python -c 'print("Hello!")'
 hf --help

@hanouticelina hanouticelina requested a review from Wauplin April 9, 2026 14:37
Copy link
Copy Markdown
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bot-ci-comment
Copy link
Copy Markdown

bot-ci-comment Bot commented Apr 9, 2026

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@hanouticelina hanouticelina merged commit d58de06 into main Apr 9, 2026
14 of 20 checks passed
@hanouticelina hanouticelina deleted the cli-deprecated-huggingface-cli branch April 9, 2026 14:44
Wauplin pushed a commit that referenced this pull request Apr 9, 2026
* Re-add huggingface-cli as a deprecation notice

* hints
@huggingface-hub-bot
Copy link
Copy Markdown
Contributor

This PR has been shipped as part of the v1.10.1 release.

@Wauplin Wauplin changed the title [CLI ]Improving a bit hf CLI discoverability [CLI]Improving a bit hf CLI discoverability Apr 9, 2026
@Wauplin Wauplin changed the title [CLI]Improving a bit hf CLI discoverability [CLI] Improving a bit hf CLI discoverability Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants