5 min read
Overview
If you are building on Localnet, you may have noticed that some of your favorite programs are unavailable (e.g., perhaps you have been unable to mint an NFT on localnet). This is because Localnet is a private network that does not have access to the same programs as Mainnet. One of the powerful features of the Solana CLI is the ability to export programs and accounts from Mainnet. This is extremely useful when building composable programs and testing on localhost.
This guide will teach you how to use Solana CLI to clone accounts and programs from Mainnet and deploy them to Localnet.
What You Will Do
In this guide, you will:
- Clone Metaplex Metadata program
- Clone an NFT minted on Mainnet
- Start a local validator with the cloned NFT and Metaplex Metadata program