Iron CLI
In addition to the REST API, Iron can be accessed through the MoonPay CLI (mp). The CLI provides direct terminal access to virtual accounts, fiat-to-stablecoin onramps, KYC verification, wallet management, and more.
Iron is a MoonPay Company. The mp CLI is the unified command-line tool for all MoonPay products, including Iron.
Installation
mp binary globally. You can verify the installation with:
Authentication
Before using any commands, you must authenticate with your MoonPay account. You can check your current session or log out at any time:Wallet Management
The CLI manages local wallets stored on your machine. Private keys are encrypted with AES-256-GCM using a key stored in your OS keychain. Keys never leave the device.Creating a Wallet
Importing a Wallet
You can import an existing wallet from a mnemonic or a private key:Managing Wallets
Deleting a wallet is irreversible. Make sure you have exported your mnemonic or private key before deleting.
Virtual Accounts
Virtual accounts let you spin up named virtual bank accounts (IBANs, ACH) that automatically convert incoming fiat into stablecoins and deliver them to a registered wallet. This is the primary Iron product accessible via the CLI. For more context on virtual accounts, see Named Virtual Account.Setting Up a Virtual Account
Complete KYC verification. You can check your status or retrieve the verification link at any time.If verification needs to be restarted:
Creating an Onramp
Once your account is verified and a wallet is registered, you can create an onramp rule that converts incoming fiat into stablecoins.Funding via Open Banking
You can trigger a payment directly from the CLI using open banking:Viewing Transactions
Checking Balances
After funds have been converted and delivered, you can verify your wallet balances:Virtual Account Command Reference
mp virtual-account create- Create a virtual account and start KYC.mp virtual-account retrieve- Get account status.mp virtual-account kyc continue- Check KYC status or get verification link.mp virtual-account kyc restart- Restart KYC verification.mp virtual-account agreement list- List legal agreements.mp virtual-account agreement accept- Accept a legal agreement.mp virtual-account wallet register- Register a wallet with the virtual account.mp virtual-account wallet list- List registered wallets.mp virtual-account onramp create- Create a fiat-to-stablecoin onramp.mp virtual-account onramp retrieve- Get onramp details and banking info.mp virtual-account onramp list- List all onramps.mp virtual-account onramp delete- Cancel an onramp.mp virtual-account onramp payment create- Create an open banking payment link.mp virtual-account onramp payment retrieve- Get payment status.mp virtual-account transaction list- List fiat-to-stablecoin conversions.
Additional MoonPay CLI Capabilities
Themp CLI is the unified interface for the entire MoonPay infrastructure. Beyond Iron’s virtual account and stablecoin features, the same CLI provides access to additional capabilities including buying crypto with fiat, swapping and bridging tokens across chains, transferring assets, setting up trading automations, discovering tokens, and creating multi-chain deposit links. These features support Solana, Ethereum, Base, Polygon, Arbitrum, Optimism, BNB, Avalanche, TRON, and Bitcoin.
Run mp --help to explore all available commands.
