Skip to content

Commit a671537

Browse files
committed
docs: add config usage instructions
1 parent 1d0c7dc commit a671537

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,28 @@ arxiv-cli search --query "AI" --head
6464

6565
## Configuration
6666
This tool relies on a compatible Chrome/Chromium installation for scraping.
67-
Config file location: `~/.config/arxiv-cli/config.toml` (created on first run).
67+
Config file location:
68+
- macOS: `~/Library/Application Support/com.sonesuke.arxiv-cli/config.json`
69+
- Linux: `~/.config/arxiv-cli/config.json`
70+
- Windows: `C:\Users\{User}\AppData\Roaming\sonesuke\arxiv-cli\config\config.json`
71+
72+
### Manage Configuration
73+
You can manage the configuration via CLI:
74+
75+
```bash
76+
# List current configuration
77+
arxiv-cli config list
78+
79+
# Set a value
80+
arxiv-cli config set headless false
81+
arxiv-cli config set browser_path "/usr/bin/google-chrome"
82+
83+
# Get a value
84+
arxiv-cli config get headless
85+
86+
# Show config file path
87+
arxiv-cli config path
88+
```
6889

6990
## Implementation Details
7091
- **Stack**: Rust, Clap, Headless Chrome, Serde, Reqwest, PDF-Extract.

0 commit comments

Comments
 (0)