Skip to content

[docs] Fix legacy hf CLI references (datasets) - #8657

Merged
lhoestq merged 1 commit into
mainfrom
fix-hf-cli-references
Sep 21, 2026
Merged

lhoestq merged 1 commit into
mainfrom
fix-hf-cli-references

Conversation

@Wauplin

@Wauplin Wauplin commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

The docs and a few docstrings still use commands that are no longer the recommended huggingface_hub usage in 1.x: hf replaced huggingface-cli, hf repos replaced hf repo, and --organization was replaced by a namespaced repo id.

  • docs/source/share.mdx: huggingface-cli login → hf auth login, huggingface-cli upload → hf upload (section heading, prose and all examples), huggingface-cli repo create → hf repos create, and --organization your-org-name → your-org-name/my-cool-dataset
  • docs/source/upload_dataset.mdx, docs/source/troubleshoot.mdx: huggingface-cli login → hf auth login
  • push_to_hub docstrings in arrow_dataset.py, dataset_dict.py, iterable_dataset.py and the two gated-repo error messages in utils/file_utils.py: same replacement

Docs, docstrings and error message strings only, no code change.

For context: huggingface/huggingface_hub#4955

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

@Wauplin Wauplin changed the title Use the hf CLI in the sharing docs [docs] Fix legacy hf CLI references (datasets) Sep 21, 2026
@Wauplin
Wauplin marked this pull request as ready for review September 21, 2026 14:20
@Wauplin
Wauplin requested a review from lhoestq September 21, 2026 14:20

@lhoestq lhoestq left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thx !

@lhoestq
lhoestq merged commit 111c1ad into main Sep 21, 2026
10 of 15 checks passed
@lhoestq
lhoestq deleted the fix-hf-cli-references branch September 21, 2026 16:12
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