XMTP CLI
Use the xmtp command to test, debug, and interact with XMTP conversations, groups, and messages from the command line. This skill is the entry point; use the sub-skills below for specific CLI tasks.
When to apply
- Testing or debugging XMTP from the command line
- Sending messages or creating and managing groups
- Listing or finding conversations, members, and messages
- Syncing conversations and messages
- Managing group permissions
- Demonstrating content types (text, markdown, attachment, transaction, deeplink, miniapp)
Sub-skills
| Sub-skill |
Use when |
| setup |
Initialize CLI and configure env (init, env variables) |
| groups |
Create DM or group, update group metadata |
| send |
Send messages to address or group |
| list |
List conversations, members, messages; find by address or inbox |
| debug |
Get info, resolve address, inspect inbox |
| sync |
Sync conversations or sync all |
| permissions |
List/info group permissions, update permissions |
| content |
Demo text, markdown, attachment, transaction, deeplink, miniapp |
| debugging |
Enable CLI debug logging (XMTP_FORCE_DEBUG env) |
How to use
- Pick the sub-skill that matches the task (e.g. send message → send).
- Read that sub-skill’s
SKILL.md and its rules/ for step-by-step guidance.
Install
npm install -g @xmtp/cli
# or
pnpm add -g @xmtp/cli
# or
yarn global add @xmtp/cli
Run without install
npx @xmtp/cli <command> <arguments>
# or pnpx / yarn dlx
Help
xmtp --help
xmtp <command> --help
Full documentation: docs.xmtp.org
1---
2name: xmtp-cli
3description: >
4 Run and script the XMTP CLI for testing, debugging, and interacting with XMTP conversations, groups, and messages.
5 Use when the user needs init, send, list, groups, debug, sync, permissions, or content commands from the CLI.
6license: MIT
7metadata:
8 source: https://skillmd.com/skills/modbender/xmtp-cli
9 author: xmtp
10 version: "1.0.0"
11---
12
13# XMTP CLI
14
15Use the `xmtp` command to test, debug, and interact with XMTP conversations, groups, and messages from the command line. This skill is the entry point; use the sub-skills below for specific CLI tasks.
16
17## When to apply
18
19- Testing or debugging XMTP from the command line
20- Sending messages or creating and managing groups
21- Listing or finding conversations, members, and messages
22- Syncing conversations and messages
23- Managing group permissions
24- Demonstrating content types (text, markdown, attachment, transaction, deeplink, miniapp)
25
26## Sub-skills
27
28| Sub-skill | Use when |
29|-----------|----------|
30| **setup** | Initialize CLI and configure env (init, env variables) |
31| **groups** | Create DM or group, update group metadata |
32| **send** | Send messages to address or group |
33| **list** | List conversations, members, messages; find by address or inbox |
34| **debug** | Get info, resolve address, inspect inbox |
35| **sync** | Sync conversations or sync all |
36| **permissions** | List/info group permissions, update permissions |
37| **content** | Demo text, markdown, attachment, transaction, deeplink, miniapp |
38| **debugging** | Enable CLI debug logging (XMTP_FORCE_DEBUG env) |
39
40## How to use
41
421. Pick the sub-skill that matches the task (e.g. send message → **send**).
432. Read that sub-skill’s `SKILL.md` and its `rules/` for step-by-step guidance.
44
45## Install
46
47```bash
48npm install -g @xmtp/cli
49# or
50pnpm add -g @xmtp/cli
51# or
52yarn global add @xmtp/cli
53```
54
55## Run without install
56
57```bash
58npx @xmtp/cli <command> <arguments>
59# or pnpx / yarn dlx
60```
61
62## Help
63
64```bash
65xmtp --help
66xmtp <command> --help
67```
68
69Full documentation: [docs.xmtp.org](https://docs.xmtp.org)