Skip to content

Commit 599647c

Browse files
committed
token in CLI login docs
1 parent b3116d4 commit 599647c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/source/guides/upload.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Whenever you want to upload files to the Hub, you need to log in to your Hugging
1313

1414
```bash
1515
huggingface-cli login
16+
# or using an environment variable
17+
huggingface-cli login --token $HUGGINGFACE_TOKEN
1618
```
1719

1820
- Alternatively, you can programmatically login using [`login`] in a notebook or a script:

docs/source/quick-start.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Once you have your User Access Token, run the following command in your terminal
6060

6161
```bash
6262
huggingface-cli login
63+
# or using an environment variable
64+
huggingface-cli login --token $HUGGINGFACE_TOKEN
6365
```
6466

6567
Alternatively, you can programmatically login using [`login`] in a notebook or a script:

0 commit comments

Comments
 (0)