Назад към всички

xmtp-cli-setup

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

$ git log --oneline --stat
stars:1,933
forks:367
updated:March 4, 2026
SKILL.mdreadonly
SKILL.md Frontmatter
namexmtp-cli-setup
descriptionInitialize the XMTP CLI and configure environment variables. Use when setting up or changing CLI config (init, .env, gateway, env).
licenseMIT
metadata[object Object]

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.