@waniwani/cli 0.0.6 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -78,24 +78,28 @@ waniwani mcp deploy
78
78
 
79
79
  The CLI stores auth tokens and settings in `~/.waniwani/`.
80
80
 
81
- ### Environment Variables
81
+ ### API URL
82
82
 
83
- | Variable | Description | Default |
84
- |----------|-------------|---------|
85
- | `WANIWANI_API_URL` | API base URL | `https://app.waniwani.ai` |
83
+ The API URL can be configured in three ways (in order of priority):
86
84
 
87
- To connect to a different environment (e.g., self-hosted):
85
+ 1. **Environment variable**: `WANIWANI_API_URL`
86
+ 2. **Config file**: `~/.waniwani/config.json` → `apiUrl`
87
+ 3. **Default**: `https://app.waniwani.ai`
88
+
89
+ #### Using environment variable
88
90
 
89
91
  ```bash
90
- WANIWANI_API_URL=https://another-waniwani-domain.ai waniwani login
92
+ WANIWANI_API_URL=https://staging.waniwani.ai waniwani login
91
93
  ```
92
94
 
93
- Or export it for the session:
95
+ #### Using config file
94
96
 
95
- ```bash
96
- export WANIWANI_API_URL=https://staging.waniwani.com
97
- waniwani login
98
- waniwani mcp list
97
+ Edit `~/.waniwani/config.json`:
98
+
99
+ ```json
100
+ {
101
+ "apiUrl": "https://staging.waniwani.ai"
102
+ }
99
103
  ```
100
104
 
101
105
  ## License