- Command-line flags (highest)
- Environment variables
- Config file (lowest)
Config file
Default location:~/.config/meepachat/config.json
| Field | Description |
|---|---|
url | Base URL of your MeepaChat instance |
token | Authentication token |
tokenType | "Bearer" for user sessions, "Bot" for bot accounts |
meepachat login creates and updates this file automatically. To use a different path:
Environment variables
| Variable | Description |
|---|---|
MEEPACHAT_URL | Base URL of MeepaChat instance (equivalent to --url) |
MEEPACHAT_TOKEN | Authentication token (equivalent to --token) |
MEEPACHAT_TOKEN_TYPE | Token type: Bearer or Bot |
Global flags
Available on every command:| Flag | Short | Description |
|---|---|---|
--url | -u | Base URL of MeepaChat instance |
--token | -t | Authentication token |
--json | -j | Output as JSON instead of a table |
--config | Config file path (default: ~/.config/meepachat/config.json) | |
--verbose | -v | Show HTTP request and response details |
Output formats
Table (default)
Human-readable. Used in interactive workflows.JSON
Machine-readable. Useful withjq or in scripts.
Key-value
Detail views (e.g.servers get) print key-value pairs:
Verbose mode
--verbose prints the HTTP method, URL, request headers, response status, and response body before formatted output. Useful for debugging API calls.
