Theme

Candy Machine Commands

Insert Items

The mplx cm insert command inserts uploaded assets from your cache file into the on-chain candy machine, making them available for minting. It features smart loading detection, efficient batch processing, and detailed transaction tracking.

Usage

# Insert items from current candy machine directory
mplx cm insert

# Insert items from specific candy machine directory
mplx cm insert <directory>

Requirements

Before running the insert command, ensure you have:

  1. Asset Cache: Valid asset-cache.json with uploaded URIs
  2. Candy Machine: Created candy machine with ID in cache
  3. Wallet Balance: Sufficient SOL for transaction fees
  4. Network Access: Stable connection to Solana network

Prerequisites

# 1. Candy machine must be created
mplx cm create

# 2. Upload the assets
mplx cm upload

# 3. Then insert items
mplx cm insert

Next Steps

  1. Verify insertion to confirm all items are loaded
  2. Test minting to ensure candy machine works
  3. Monitor performance to check for issues
  4. Plan your launch with appropriate guards
Previous
Upload Assets