Skip to content

Commit a1c1474

Browse files
update installers paths (#3400)
1 parent 21edca8 commit a1c1474

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

docs/source/en/guides/cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Alternatively, you can install the `hf` CLI with a single command:
2222
On macOS and Linux:
2323

2424
```bash
25-
>>> curl -LsSf https://hf.co/install.sh | sh
25+
>>> curl -LsSf https://hf.co/cli/install.sh | sh
2626
```
2727

2828
On Windows:
2929

3030
```powershell
31-
>>> powershell -c "irm https://hf.co/install.ps1 | iex"
31+
>>> powershell -c "irm https://hf.co/cli/install.ps1 | iex"
3232
```
3333

3434
Once installed, you can check that the CLI is correctly setup:

docs/source/en/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ Use our one-liner installers to set up the `hf` CLI without touching your Python
110110
On macOS and Linux:
111111

112112
```bash
113-
curl -LsSf https://hf.co/install.sh | sh
113+
curl -LsSf https://hf.co/cli/install.sh | sh
114114
```
115115

116116
On Windows:
117117

118118
```powershell
119-
powershell -c "irm https://hf.co/install.ps1 | iex"
119+
powershell -c "irm https://hf.co/cli/install.ps1 | iex"
120120
```
121121

122122
## Install with conda

utils/installers/install.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Hugging Face CLI Installer for Windows
2-
# Usage: powershell -c "irm https://hf.co/install.ps1 | iex"
3-
# Or: curl -LsSf https://hf.co/install.ps1 | pwsh -
2+
# Usage: powershell -c "irm https://hf.co/cli/install.ps1 | iex"
3+
# Or: curl -LsSf https://hf.co/cli/install.ps1 | pwsh -
44

55
<#
66
.SYNOPSIS
@@ -19,7 +19,7 @@ Enables verbose output, including detailed pip logs.
1919
Skips PATH modifications; `hf` must be invoked via its full path unless you add it manually.
2020
2121
.EXAMPLE
22-
powershell -c "irm https://hf.co/install.ps1 | iex"
22+
powershell -c "irm https://hf.co/cli/install.ps1 | iex"
2323
#>
2424

2525
<#

utils/installers/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
# Hugging Face CLI Installer for Linux/MacOS
3-
# Usage: curl -LsSf https://hf.co/install.sh | sh -s -- [OPTIONS]
3+
# Usage: curl -LsSf https://hf.co/cli/install.sh | sh -s -- [OPTIONS]
44

55

66
if [ -z "$BASH_VERSION" ]; then
@@ -87,7 +87,7 @@ run_command() {
8787

8888
usage() {
8989
cat <<'EOF'
90-
Usage: curl -LsSf https://hf.co/install.sh | sh -s -- [OPTIONS]
90+
Usage: curl -LsSf https://hf.co/cli/install.sh | sh -s -- [OPTIONS]
9191
9292
Options:
9393
--force Recreate the Hugging Face CLI virtual environment if it exists

0 commit comments

Comments
 (0)