Skip to content

[CLI] Support hf -v to print version#4185

Merged
Wauplin merged 1 commit intomainfrom
accept-hf-v
May 5, 2026
Merged

[CLI] Support hf -v to print version#4185
Wauplin merged 1 commit intomainfrom
accept-hf-v

Conversation

@Wauplin
Copy link
Copy Markdown
Contributor

@Wauplin Wauplin commented May 5, 2026

$ hf -v
1.14.0.dev0

cc @Pierrci who asked for it


Note

Low Risk
Low risk: adds a new short flag alias for the existing hidden --version option without changing version-printing behavior or other CLI commands.

Overview
Adds -v as a shorthand for the existing hidden --version option on the hf CLI, so hf -v prints the package version and exits early via the same callback.

Reviewed by Cursor Bugbot for commit 23e6def. Bugbot is set up for automated code reviews on this repo. Configure here.

@Wauplin Wauplin requested a review from Pierrci May 5, 2026 08:18
@Wauplin Wauplin merged commit 3d19907 into main May 5, 2026
19 of 20 checks passed
@Wauplin Wauplin deleted the accept-hf-v branch May 5, 2026 08:18
@bot-ci-comment
Copy link
Copy Markdown

bot-ci-comment Bot commented May 5, 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.

@Pierrci
Copy link
Copy Markdown
Member

Pierrci commented May 5, 2026

PR OF THE YEAR ❤️

@julien-c
Copy link
Copy Markdown
Member

julien-c commented May 5, 2026

You could have spent a few tokens and launched it yourself.

@Pierrci
Copy link
Copy Markdown
Member

Pierrci commented May 5, 2026

i thought it was more involved than that tbh x)

@Wauplin
Copy link
Copy Markdown
Contributor Author

Wauplin commented May 6, 2026

don't judge the difficulty of a PR by the number of code changes. I swear I had to work very hard to write this PR :p

@huggingface-hub-bot
Copy link
Copy Markdown
Contributor

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

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.

3 participants