Once you have your collection prepared, the next step is to upload your assets and create a Candy Machine. This step is completed by a single command via the Candy Machine CLI.
Before you can proceed, you need to check that:
Your images and metadata are in the same format as example-asset folders and you already have master-csv file.
You have funds in your wallet.
You have pinata account and you config .env properly. You can copy .env-example and rename to .env
Environment Variable
Description
PINATA_API_KEY
Pinata api key
PINATA_SECRET_KEY
Pinata secret key
MNEMONIC
Mnemonic for wallet that will use to mint NFT (Minter account)
Uploading the IPFS
npx ts-node src/nft-cli.ts upload -d data -i "example-assets/images" -c "example-assets/master.csv"
Param
Required
Example
Description
-i, --image <string>
true
"example-assets/images"
Image asset folder
-c, --config <string>
true
"example-assets/master.csv"
Master csv file
-d, --data <string>
true
"data"
Data folder (or Working Directory) for store output master csv file