Skip to main content

Installation

The CLI is included with iso8583sim:

Basic Usage

Commands

parse

Parse a raw ISO 8583 message and display its contents.
Arguments: Options: Examples:

build

Build an ISO 8583 message from field values.
Options: Examples:
fields.json format:

validate

Validate an ISO 8583 message for structure and content.
Options: Examples:
Output (--against all):
The command exits with status 1 when any check fails.

convert

Convert a message to another ISO 8583 version.
Options: Example:
The output shows the converted message, notes about fields whose meaning differs between versions, and any fields that had to be dropped. See Version Conversion for the rules.

explain

Explain a message in plain English.
By default the explanation comes from an LLM (see LLM Features for provider setup). With --no-llm you get a rule-based summary instead, which works offline and needs no API key. Options: Examples:
Output (--no-llm):
followed by a table of every field.

generate

Generate sample ISO 8583 messages from a template, or from a plain English description with --llm.
Options: Examples:
With --llm, the generated message is validated before it’s shown, and common problems are fixed automatically.

serve

Run a mock issuer host that answers requests by rules. See Networking for the rules file format.
Stops on Ctrl+C or SIGTERM and prints a summary of the requests it received and how it answered them.

send

Send one message to a host and show the response.
Exits with status 1 on a timeout or connection error.

load

Send many generated requests to a host and report throughput, latency percentiles and response codes.
Takes the same --format, --header, --tpdu and --timeout options as send. Exits with status 1 if any request timed out or failed.

web

Run the REST API server. Requires pip install iso8583sim[web].
Interactive API docs are served at /docs. See REST API.

mcp

Run the MCP server over stdio so AI assistants can use iso8583sim. Requires pip install iso8583sim[mcp].
Your MCP client normally starts this command for you. See MCP Server for setup.

Output Formats

Table (default)

JSON

Raw

Exit Codes

Environment Variables

Piping and Scripting

Troubleshooting

Common Issues

“Command not found”:
“Invalid hex string”:
“Parse error: Invalid bitmap”: