Xmtp CLI Setup

Initialize the XMTP CLI and configure environment variables. Use when setting up or changing CLI config (init, .env, gateway, env).

kbarbel640-del Updated 1 repo stars

File contents

CLI setup

Initialize your XMTP CLI configuration and set required environment variables.

When to apply

  • First-time CLI setup or generating a new ephemeral wallet
  • Using an existing private key or custom gateway
  • Configuring env for dev, production, or local

Rules

  • init – Run xmtp init, options, and generated .env
  • env-variables – Required and optional env vars, .env example

Quick start

# Ephemeral wallet, dev env (default)
xmtp init

# Existing key, production
xmtp init --private-key 0x1234... --env production

Read rules/init.md and rules/env-variables.md for details.

kbarbel640-del/skills/tree/main/skills/humanagent/xmtp-cli/setup commit f657a1e37c

Frequently asked questions

npx skillmds@latest add kbarbel640-del/xmtp-cli-setup