Archived
22 lines
510 B
Markdown
22 lines
510 B
Markdown
# Set up hf-cli for automatic daily downloads
|
|
|
|
To enable daily runs, you first need to generate a config.json file defining what
|
|
to download and where to put it:
|
|
|
|
```bash
|
|
hf-cli --setup
|
|
```
|
|
|
|
then you need to enable the timer for the user and enable lingering, so the timer
|
|
is executed even when the user is not logged in:
|
|
|
|
```bash
|
|
systemctl --user enable hf-cli.timer hf-cli.service
|
|
loginctl enable-linger
|
|
```
|
|
|
|
You can test the service by running it manually:
|
|
```bash
|
|
systemctl --user start hf-cli.service
|
|
```
|