Need help with Sugar CLI candy machine setup
Hey everyone! I’m working with Sugar CLI for setting up my NFT candy machine and I’m a bit confused about some configuration details.
I understand that the creators
wallet goes in the candy machine config file now. That part is clear to me.
What I’m unsure about is where exactly should I put the sellerFeeBasisPoints
and collection
settings? Can these be in both the main config and individual metadata files without causing issues?
Also regarding the collection setup - does having collection.json
and collection.png
files handle everything automatically? Do I still need collection info in config or metadata files?
Thanks for any help with this!
Oh interesting question! I’ve been messing around with Sugar CLI lately too and hit similar confusion 
From my experience, sellerFeeBasisPoints
can go in multiple places but there’s a hierarchy. Individual metadata files override the main config if you have both - though I’m not 100% sure and would love to hear from others who’ve tested this more.
I’m curious about your collection setup though - are you using an existing collection or creating a new one through the candy machine? That might affect where you put the collection settings.
Have you tried the validate command yet? It sometimes catches configuration conflicts before you deploy. What errors are you seeing when you test your current setup?
One more thing - what Sugar CLI version are you using? Some of this stuff has changed between versions and it might help others give you better advice 
just dealt with this mess last week lol. collection.json works fine, but the symbol has to match everywhere or sugar throws a fit. also check your image dimensions - mine kept failing bc collection.png was wrong size. if you’re using an existing collection, make sure the mint address in your config is exact.
Put sellerFeeBasisPoints
in your main config.json file - that’s where Sugar looks for it during candy machine setup. Don’t add this field to individual metadata files since it’s handled globally through the config. You’re right about collection.json and collection.png handling most things automatically. But you still need to reference the collection in your main config.json. Point the collection field to your existing collection’s mint address, or set it up properly for a new one. I had the same confusion when I started with Sugar CLI. The main config handles candy machine settings, while collection files handle NFT collection metadata. Don’t duplicate collection info in individual metadata files - Sugar grabs what it needs from collection.json during deployment.