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/en/guides/cli.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,23 +46,30 @@ If the CLI is correctly installed, you should see a list of all the options avai
46
46
> [!TIP]
47
47
> 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.
48
48
49
-
### Alternative install
49
+
### Other installation methods
50
50
51
-
#### Using pkgx
51
+
#### Using uv
52
52
53
-
[Pkgx](https://pkgx.sh) is a blazingly fast cross platform package manager that runs anything. You can install huggingface-cli using pkgx as follows:
53
+
You can install and run the `hf` CLI with [uv](https://docs.astral.sh/uv/).
54
+
55
+
Make sure uv is installed (adds `uv` and `uvx` to your PATH):
54
56
55
57
```bash
56
-
>>> pkgx install huggingface-cli
58
+
>>> curl -LsSf https://astral.sh/uv/install.sh | sh
57
59
```
58
60
59
-
Or you can run huggingface-cli directly:
61
+
Then install the CLI globally and use it anywhere:
60
62
61
63
```bash
62
-
>>> pkgx huggingface-cli --help
64
+
>>> uv tool install "huggingface_hub[cli]"
65
+
>>> hf auth whoami
63
66
```
64
67
65
-
Check out the pkgx huggingface page [here](https://pkgx.dev/pkgs/huggingface.co/) for more details.
68
+
Alternatively, run the CLI ephemerally with `uvx` (no global install):
0 commit comments