In this video I will show you how to generate NFT images and its JSON metadata files for a Solana NFT art collection using Metaplex candy machine cli package.

This uses Candy Machine V1, which is outdated.

Follow me

Check out the Solana NFT Project. The Hellish Party

Links to download code:
Metaplex github repo

Metaplex token metadata standard

install Node JS
install YARN package manager

Utility key shortcuts for Mac VS-Code, (check online for Windows shortcuts)
format JSON file
shift + option + f

save file
command + s

Commands used:
create a new directory to place all the code
mkdir art-test

go into the tes-art directory
cd art-test

download metaplex code using git
git clone

go into the cli directory
cd metaplex/js/packages/cli

list files
ls -l

install dependencies using Yarn
yarn install

to remove .DS_Store hidden files in mac
find ./traits -name .DS_Store -exec rm {} \;

to see the commands available in the metaplex cli (for Mac M1 compauters type npx first)
ts-node ~/art-test/metaplex/js/packages/cli/src/candy-machine-cli.ts -h
on Mac M1 all add npx first
npx ts-node ~/art-test/metaplex/js/packages/cli/src/candy-machine-cli.ts -h

to create json config file
ts-node ~/art-test/metaplex/js/packages/cli/src/candy-machine-cli.ts generate_art_configurations ./traits

to generate NFT art and metadata
ts-node ~/art-test/metaplex/js/packages/cli/src/candy-machine-cli.ts create_generative_art -n 10

Note WINDOWS users:
the path “~/” won’t work, you have to give it your full path. You can see the path to the current directory by typing “cd”, and you can continue building the path from there.
try this:
npx ts-node C:\Users\your_username_here\solana-mint\metaplex\js\packages\cli\src\candy-machine-cli.ts add-command-and-options-here

This tutorial is for the Solana Crypto Blockchain, become part of the crypto art revolution.

Solana tips and NFTs welcome
My Solana Address: 43VNin4fT1m8RG2m5Fo7PragQcqCtzbq5eUcoE9YBrHg

Similar Posts:

Leave a comment