For the complete documentation index, see llms.txt. This page is also available as Markdown.

CLI Overview

The Ledger Enterprise Multisig CLI (lem) is a command-line interface that lets you operate Safe multisig wallets directly from your shell. Query Safes, propose transactions, collect signatures, and execute on-chain using either a Ledger hardware device or a software signer.

lem covers the full Safe transaction lifecycle and produces structured JSON on stdout for every command, which makes it equally suitable for:

  • Human operators automating recurring treasury operations or scripting incident response.

  • AI agents that need a discoverable, predictable, machine-parseable surface for Ledger Multisig.

It is the same Ledger-secured multisig platform documented in the API Overview and Guides, exposed through a different surface.

What you can do

Area
Commands

Signer setup

lem connect, lem config show, lem config path

Query Safes

lem safe scan, lem safe info, lem safe balances, lem safe nonce

Query transactions

lem tx list, lem tx show

Sign & execute

lem tx propose, lem tx sign, lem tx execute

With these commands you can run the entire Safe transaction lifecycle, from proposal to on-chain execution, without ever leaving the shell. See Proposing, signing & executing for the end-to-end walkthrough.

Architecture

lem is a thin wrapper around the same components used by the existing TypeScript and Python guides:

  • The Safe API Kit for Transaction Service reads and proposals.

  • The Safe Protocol Kit for transaction creation, signing, and on-chain execution.

  • The Ledger Device Management Kit for hardware signing over USB.

All operations target Ledger's hosted Transaction Service, so any Safe or transaction you touch via lem appears in the Ledger Enterprise Multisig UI and in API queries, and vice versa. The JSON output of every command is the same shape returned by the underlying SDK / REST API, so anything you can build with the SDKs you can build with the CLI.

Supported networks

The CLI supports the same chains as the rest of the platform. See Supported Networks. At the time of writing:

Network
Chain ID

Ethereum Mainnet

1

Optimism

10

BSC

56

Base

8453

Arbitrum

42161

Ethereum Sepolia (testnet)

11155111

Next steps

  • Installation

  • Quickstart

Last updated