HuggingFace CLI: `hf` 사용법
HuggingFace CLI는 `hf`를 써야 함. 구버전은 이제 안녕!
HuggingFace CLI 쓸 때 huggingface-cli 대신 hf 명령어를 사용해야 함.
- 왜?
huggingface-cli는 구버전이고, 최신huggingface_hub라이브러리에서는hf로 리브랜딩됨. - 어떻게? HF 관련 스크립트나 문서에서 다음처럼
hf를 활용하면 됨.
hf auth login # 로그인
hf download <repo_id> # 모델/데이터셋 다운로드
hf upload <repo_id> # 모델/데이터셋 업로드
계정은 urustin으로 사용하면 된다.
여기서 배울 것
- `huggingface-cli` 대신 `hf` 명령어 사용
- `hf`는 최신 `huggingface_hub`의 공식 CLI
- `hf auth login`, `hf download`, `hf upload` 등 주요 명령어 숙지
원본 파일 보기 (.claude/projects/-home-son-prj-dataset/memory/feedback_hf_cli.md)
---
name: HuggingFace CLI는 `hf` 사용
description: huggingface-cli가 아닌 새 CLI `hf` 를 사용해야 함
type: feedback
originSessionId: 3810bfd4-624e-4a06-91c4-3189931063d1
---
HuggingFace 관련 명령은 `huggingface-cli`가 아니라 **`hf`** 를 사용한다 (경로: `/home/son/.local/bin/hf`).
**Why:** `huggingface-cli`는 구버전이고, 최신 huggingface_hub는 `hf` 로 rebranding됨. 유저가 "hf 가 요즘 방식이야" 라고 명시적으로 언급.
**How to apply:** 스크립트/문서에서 로그인, 다운로드, 업로드 등 HF 관련 명령을 쓸 때 `hf auth login`, `hf download`, `hf upload` 형식으로 사용. 계정: `urustin`.