Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/source/en/guides/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Alternatively, you can install the `hf` CLI with a single command:
On macOS and Linux:

```bash
>>> curl -LsSf https://hf.co/install.sh | sh
>>> curl -LsSf https://hf.co/cli/install.sh | sh
```

On Windows:

```powershell
>>> powershell -c "irm https://hf.co/install.ps1 | iex"
>>> powershell -c "irm https://hf.co/cli/install.ps1 | iex"
```

Once installed, you can check that the CLI is correctly setup:
Expand Down
4 changes: 2 additions & 2 deletions docs/source/en/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ Use our one-liner installers to set up the `hf` CLI without touching your Python
On macOS and Linux:

```bash
curl -LsSf https://hf.co/install.sh | sh
curl -LsSf https://hf.co/cli/install.sh | sh
```

On Windows:

```powershell
powershell -c "irm https://hf.co/install.ps1 | iex"
powershell -c "irm https://hf.co/cli/install.ps1 | iex"
```

## Install with conda
Expand Down
6 changes: 3 additions & 3 deletions utils/installers/install.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hugging Face CLI Installer for Windows
# Usage: powershell -c "irm https://hf.co/install.ps1 | iex"
# Or: curl -LsSf https://hf.co/install.ps1 | pwsh -
# Usage: powershell -c "irm https://hf.co/cli/install.ps1 | iex"
# Or: curl -LsSf https://hf.co/cli/install.ps1 | pwsh -

<#
.SYNOPSIS
Expand All @@ -19,7 +19,7 @@ Enables verbose output, including detailed pip logs.
Skips PATH modifications; `hf` must be invoked via its full path unless you add it manually.

.EXAMPLE
powershell -c "irm https://hf.co/install.ps1 | iex"
powershell -c "irm https://hf.co/cli/install.ps1 | iex"
#>

<#
Expand Down
4 changes: 2 additions & 2 deletions utils/installers/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
# Hugging Face CLI Installer for Linux/MacOS
# Usage: curl -LsSf https://hf.co/install.sh | sh -s -- [OPTIONS]
# Usage: curl -LsSf https://hf.co/cli/install.sh | sh -s -- [OPTIONS]


if [ -z "$BASH_VERSION" ]; then
Expand Down Expand Up @@ -87,7 +87,7 @@ run_command() {

usage() {
cat <<'EOF'
Usage: curl -LsSf https://hf.co/install.sh | sh -s -- [OPTIONS]
Usage: curl -LsSf https://hf.co/cli/install.sh | sh -s -- [OPTIONS]

Options:
--force Recreate the Hugging Face CLI virtual environment if it exists
Expand Down
Loading