Skip to content

Commit c87438f

Browse files
committed
Create RESET.md
1 parent 47ca0d6 commit c87438f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

docs/RESET.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
### Reset Configuration
2+
3+
You can reset the default configuration files used by `llms.py`. This is useful if your local configuration files (`~/.llms/llms.json`, `~/.llms/providers.json`, `~/.llms/providers-extra.json`) become corrupted or if you want to start fresh with the factory defaults.
4+
5+
#### `--reset`
6+
7+
View the available reset options:
8+
9+
```bash
10+
llms --reset
11+
```
12+
Output:
13+
```text
14+
Available resets:
15+
config - Reset ~/.llms/llms.json to default
16+
providers - Reset ~/.llms/providers.json and ~/.llms/providers-extra.json to default
17+
all - Reset all configuration
18+
```
19+
20+
#### `--reset config`
21+
22+
Resets your `~/.llms/llms.json` file back to the original default structure without affecting your providers configuration.
23+
24+
```bash
25+
llms --reset config
26+
```
27+
28+
#### `--reset providers`
29+
30+
Resets the `~/.llms/providers.json` and `~/.llms/providers-extra.json` files by downloading the latest defaults from the official repository, and automatically fetches updates.
31+
32+
```bash
33+
llms --reset providers
34+
```
35+
36+
#### `--reset all`
37+
38+
Performs both configuration and providers resets simultaneously.
39+
40+
```bash
41+
llms --reset all
42+
```

0 commit comments

Comments
 (0)