Skip to content

Commit 76e0a5e

Browse files
committed
chore: update readme
1 parent b082f52 commit 76e0a5e

1 file changed

Lines changed: 21 additions & 98 deletions

File tree

README.md

Lines changed: 21 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -10,145 +10,68 @@ CLI for [Chatwoot](https://www.chatwoot.com) — manage conversations, send repl
1010
curl -fsSL https://chwt.app/install-cli | sh
1111
```
1212

13-
For installing a specific version, or to install the CLI on Windows, follow the instructions [here](https://developers.chatwoot.com/cli#install).
13+
For a specific version or Windows, see the [install docs](https://developers.chatwoot.com/cli#install).
1414

1515
## Setup
1616

1717
```bash
1818
chatwoot auth login
1919
```
2020

21-
You'll be prompted for:
22-
- **Base URL** — your Chatwoot instance (e.g. `https://app.chatwoot.com`)
23-
- **API Key** — your agent API access token
24-
- **Account ID** — your account number
25-
26-
Credentials are validated against the API before saving. Non-secret config is stored at `~/.chatwoot/config.yaml`; the API key is stored in your OS keyring. For CI, coding agents, or headless environments, set `CHATWOOT_API_KEY` to override the saved keyring token.
21+
You'll be prompted for your **Base URL**, **API Key**, and **Account ID**. Credentials are validated before saving. Non-secret config lives at `~/.chatwoot/config.yaml`; the API key is stored in your OS keyring. For CI or headless environments, set `CHATWOOT_API_KEY` to override the keyring.
2722

2823
## Agent Skill
2924

30-
If you use Claude Code, Cursor, or another AI coding assistant, install the agent skill so it knows the CLI's grammar, JSON shapes, and safety rules before sending customer-visible replies:
25+
If you use Claude Code, Cursor, or another AI coding assistant, install the agent skill so it knows the CLI's grammar and safety rules before sending customer-visible replies:
3126

3227
```bash
3328
npx skills add chatwoot/cli # current project
3429
npx skills add chatwoot/cli --global # all projects
3530
```
3631

37-
Agents run non-interactively, so authenticate once with `chatwoot auth login` (or set `CHATWOOT_API_KEY` for sandboxed environments). See the [agent skill docs](https://developers.chatwoot.com/cli/agent-skill) for details.
32+
See the [agent skill docs](https://developers.chatwoot.com/cli/agent-skill) for details.
3833

39-
## CLI Usage
34+
## Usage
4035

4136
The CLI uses a simple noun grammar:
4237

4338
- **Plural noun = list:** `chatwoot convs`, `chatwoot contacts`, `chatwoot agents`
44-
- **Singular + id + verb:** `chatwoot conv 123 reply "thanks"` — id before verb, the way you'd say it.
45-
- **`<noun> <id>`** alone is shorthand for view: `chatwoot conv 123` views conversation 123.
46-
47-
### Conversations — list
39+
- **`<noun> <id>`** views: `chatwoot conv 123`
40+
- **`<noun> <id> <verb>`** acts: `chatwoot conv 123 reply "thanks"` — id before verb, the way you'd say it.
4841

4942
```bash
50-
chatwoot convs # Open conversations assigned to you (default)
51-
chatwoot convs -s resolved # Resolved conversations
43+
chatwoot convs # Open conversations assigned to you
5244
chatwoot convs --assignee all --inbox 5 # All conversations in inbox 5
53-
chatwoot convs -l billing,urgent # Filter by labels
5445
chatwoot convs --query "refund" # Search by message content
55-
```
5646

57-
### Conversations — act on one
58-
59-
```bash
60-
chatwoot conv 123 # View (default)
61-
chatwoot conv 123 messages # List messages
62-
chatwoot conv 123 reply "Thanks, looking into it"
47+
chatwoot conv 123 # View
48+
chatwoot conv 123 reply "Looking into it"
6349
chatwoot conv 123 reply "internal note" --private
64-
chatwoot conv 123 resolve # Mark resolved
65-
chatwoot conv 123 open # Set status to open
66-
chatwoot conv 123 pending # Set status to pending
67-
chatwoot conv 123 snooze # Snooze until next reply
68-
chatwoot conv 123 snooze --until 24h # Or 7d, 2026-05-10
69-
chatwoot conv 123 assign --agent me # Assign to yourself
70-
chatwoot conv 123 assign --agent alice # By name (case-insensitive substring)
71-
chatwoot conv 123 assign --agent 42 # By agent ID
72-
chatwoot conv 123 assign --team 7 # Assign to a team
73-
chatwoot conv 123 unassign
74-
chatwoot conv 123 label billing,urgent # Set labels (replaces existing)
50+
chatwoot conv 123 resolve # Or: open, pending, snooze
51+
chatwoot conv 123 assign --agent me # Or: --agent alice, --agent 42, --team 7
52+
chatwoot conv 123 label billing,urgent
7553
chatwoot conv 123 priority urgent # urgent | high | medium | low | none
76-
```
7754

78-
### Contacts
55+
chatwoot contacts --search "john"
56+
chatwoot contact 456 conversations
7957

80-
```bash
81-
chatwoot contacts # List contacts
82-
chatwoot contacts --search "john" # Search by name, email, or phone
83-
chatwoot contact 456 # View
84-
chatwoot contact 456 conversations # Conversations for this contact
58+
chatwoot inboxes / agents / labels / teams # List
59+
chatwoot me # Your profile
8560
```
8661

87-
### Inboxes, agents, labels, teams
88-
89-
```bash
90-
chatwoot inboxes # List inboxes
91-
chatwoot inbox 5 # View one
92-
chatwoot agents # List agents
93-
chatwoot labels # List account-level labels
94-
chatwoot teams # List teams
95-
```
96-
97-
### Profile
98-
99-
```bash
100-
chatwoot me # Show your profile
101-
```
102-
103-
### Auth & config
104-
105-
```bash
106-
chatwoot auth login # Interactive login (caches user_id)
107-
chatwoot auth logout # Remove saved credentials
108-
chatwoot auth status # Show current user and instance
109-
chatwoot config path # Print config file path
110-
chatwoot config view # Print config and credential source
111-
```
112-
113-
## Global Flags
114-
115-
| Flag | Short | Description |
116-
|------|-------|-------------|
117-
| `--output` | `-o` | Output format: `text`, `json`, `csv` |
118-
| `--account` | `-a` | Override account ID |
119-
| `--quiet` | `-q` | Print only IDs (for scripting) |
120-
| `--no-color` | | Disable colored output |
121-
| `--verbose` | `-v` | Show request/response details |
122-
| `--version` | | Print version |
62+
Run `chatwoot --help` or see the [full command reference](https://developers.chatwoot.com/cli/commands).
12363

12464
## Output Formats
12565

126-
**Text** (default) — human-readable tables:
127-
128-
```
129-
ID Status Contact Assignee Inbox
130-
194 open Jane Doe Shivam Mishra WebWidget
131-
197 open Vinay K Shivam Mishra Whatsapp
132-
```
133-
134-
**JSON** — full API response, pipe to `jq`:
66+
`-o text` (default), `-o json`, `-o csv`, or `-q` (IDs only, for scripting):
13567

13668
```bash
13769
chatwoot convs -o json | jq '.data.payload[].id'
138-
```
139-
140-
**CSV** — for spreadsheets and data processing:
141-
142-
```bash
143-
chatwoot agents -o csv > agents.csv
144-
```
145-
146-
**Quiet** — IDs only, one per line:
147-
148-
```bash
14970
chatwoot convs -q | xargs -I{} chatwoot conv view {}
15071
```
15172

73+
For piping, batching, and CI workflows, see the [scripting guide](https://developers.chatwoot.com/cli/scripting).
74+
15275
## License
15376

15477
MIT

0 commit comments

Comments
 (0)