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
Copy file name to clipboardExpand all lines: docs/source/de/installation.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,13 +44,13 @@ Einige Abhängigkeiten von `huggingface_hub` sind [optional](https://setuptools.
44
44
45
45
Sie können optionale Abhängigkeiten über `pip` installieren:
46
46
```bash
47
-
# Abhängigkeiten sowohl für torch-spezifische als auch für CLI-spezifische Funktionen installieren.
48
-
pip install 'huggingface_hub[cli,torch]'
47
+
# Abhängigkeiten sowohl für torch-spezifische als auch für MCP-spezifische Funktionen installieren.
48
+
pip install 'huggingface_hub[mcp,torch]'
49
49
```
50
50
51
51
Hier ist die Liste der optionalen Abhängigkeiten in huggingface_hub:
52
52
53
-
-`cli`: bietet eine komfortablere CLI-Schnittstelle für huggingface_hub.
53
+
-`mcp`: MCP-spezifische Funktionen für huggingface_hub.
54
54
-`fastai`, `torch`: Abhängigkeiten, um framework-spezifische Funktionen auszuführen.
55
55
-`dev`: Abhängigkeiten, um zur Bibliothek beizutragen. Enthält `testing` (um Tests auszuführen), `typing` (um den Type Checker auszuführen) und `quality` (um Linters auszuführen).
Once installed, you can check that the CLI is correctly setup:
53
-
54
-
```
55
34
>>> hf --help
56
35
Usage: hf [OPTIONS] COMMAND [ARGS]...
57
36
@@ -67,6 +46,7 @@ Commands:
67
46
auth Manage authentication (login, logout, etc.).
68
47
cache Manage local cache directory.
69
48
download Download files from the Hub.
49
+
endpoints Manage Hugging Face Inference Endpoints.
70
50
env Print information about the environment.
71
51
jobs Run and manage Jobs on the Hub.
72
52
repo Manage repos on the Hub.
@@ -81,32 +61,32 @@ If the CLI is correctly installed, you should see a list of all the options avai
81
61
> [!TIP]
82
62
> The `--help` option is very convenient for getting more details about a command. You can use it anytime to list all available options and their details. For example, `hf upload --help` provides more information on how to upload files using the CLI.
83
63
84
-
### Other installation methods
64
+
### Using uv
85
65
86
-
#### Using uv
66
+
The easiest way to use the `hf` CLI is with [`uvx`](https://docs.astral.sh/uv/concepts/tools/). It always runs the latest version in an isolated environment - no installation needed!
87
67
88
-
You can install and run the `hf` CLI with [uv](https://docs.astral.sh/uv/).
68
+
Make sure `uv` is installed first. See the [uv installation guide](https://docs.astral.sh/uv/getting-started/installation/) for instructions.
89
69
90
-
Make sure uv is installed (adds `uv` and `uvx` to your PATH):
70
+
Then use the CLI directly:
91
71
92
72
```bash
93
-
>>> curl -LsSf https://astral.sh/uv/install.sh | sh
73
+
>>> uvx hf auth login
74
+
>>> uvx hf download
75
+
>>> uvx hf ...
94
76
```
95
77
96
-
Then install the CLI globally and use it anywhere:
78
+
> [!TIP]
79
+
> `uvx hf` uses the [`hf` PyPI package](https://pypi.org/project/hf/).
97
80
98
-
```bash
99
-
>>> uv tool install "huggingface_hub"
100
-
>>> hf auth whoami
101
-
```
81
+
### Install with pip
102
82
103
-
Alternatively, run the CLI ephemerally with `uvx` (no global install):
83
+
The CLI is also shipped with the core `huggingface_hub` package:
104
84
105
85
```bash
106
-
>>> uvx --from huggingface_hub hf auth whoami
86
+
>>> pip install -U "huggingface_hub"
107
87
```
108
88
109
-
####Using Homebrew
89
+
### Using Homebrew
110
90
111
91
You can also install the CLI using [Homebrew](https://brew.sh/):
Copy file name to clipboardExpand all lines: docs/source/fr/installation.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,12 +48,12 @@ Toutefois, certaines fonctionnalités de `huggingface_hub` ne seront pas disponi
48
48
49
49
Vous pouvez installer des dépendances optionnelles via `pip`:
50
50
```bash
51
-
#Installation des dépendances spécifiques à Pytorch et au CLI.
52
-
pip install 'huggingface_hub[cli,torch]'
51
+
#Installation des dépendances spécifiques à Pytorch et à MCP.
52
+
pip install 'huggingface_hub[mcp,torch]'
53
53
```
54
54
55
55
Voici une liste des dépendances optionnelles dans `huggingface_hub`:
56
-
-`cli` fournit une interface d'invite de commande plus pratique pour `huggingface_hub`.
56
+
-`mcp`: fonctionnalités spécifiques à MCP pour `huggingface_hub`.
57
57
-`fastai`, `torch` sont des dépendances pour utiliser des fonctionnalités spécifiques à un framework.
58
58
-`dev` permet de contribuer à la librairie. Cette dépendance inclut `testing` (pour lancer des tests), `typing` (pour lancer le vérifieur de type) et `quality` (pour lancer des linters).
0 commit comments