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-cli3description: Run and script the XMTP CLI for testing, debugging, and interacting with XMTP conversations, groups, and messages. Use when the user needs init, send, list, groups, debug, sync, permissions, or content commands from the CLI.4license: MIT5---67# XMTP CLI89Use 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.1011## When to apply1213- Testing or debugging XMTP from the command line14- Sending messages or creating and managing groups15- Listing or finding conversations, members, and messages16- Syncing conversations and messages17- Managing group permissions18- Demonstrating content types (text, markdown, attachment, transaction, deeplink, miniapp)1920## Sub-skills2122| Sub-skill | Use when |23|-----------|----------|24| **setup** | Initialize CLI and configure env (init, env variables) |25| **groups** | Create DM or group, update group metadata |26| **send** | Send messages to address or group |27| **list** | List conversations, members, messages; find by address or inbox |28| **debug** | Get info, resolve address, inspect inbox |29| **sync** | Sync conversations or sync all |30| **permissions** | List/info group permissions, update permissions |31| **content** | Demo text, markdown, attachment, transaction, deeplink, miniapp |32| **debugging** | Enable CLI debug logging (XMTP_FORCE_DEBUG env) |3334## How to use35361. Pick the sub-skill that matches the task (e.g. send message → **send**).372. Read that sub-skill’s `SKILL.md` and its `rules/` for step-by-step guidance.3839## Install4041```bash42npm install -g @xmtp/cli43# or44pnpm add -g @xmtp/cli45# or46yarn global add @xmtp/cli47```4849## Run without install5051```bash52npx @xmtp/cli <command> <arguments>53# or pnpx / yarn dlx54```5556## Help5758```bash59xmtp --help60xmtp <command> --help61```6263Full documentation: [docs.xmtp.org](https://docs.xmtp.org)