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:
- Asset Cache: Valid
asset-cache.jsonwith uploaded URIs - Candy Machine: Created candy machine with ID in cache
- Wallet Balance: Sufficient SOL for transaction fees
- 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
Related Commands
mplx cm upload- Upload assets (required before insert)mplx cm create- Create candy machine (required before insert)mplx cm validate- Validate cache and uploadsmplx cm fetch- Verify insertion status
Next Steps
- Verify insertion to confirm all items are loaded
- Test minting to ensure candy machine works
- Monitor performance to check for issues
- Plan your launch with appropriate guards