metaplex-foundation / sugar

Candy Machine Rust CLI.
Apache License 2.0
203 stars 116 forks source link

Deleting.creating candy machine after testing on devnet #293

Closed pogotka closed 2 years ago

pogotka commented 2 years ago

Error running command (re-run needed): Candy machine from cache does't exist on chain!

What should I do? I tested my assets on devnet but now I want to upload them on mainnet

samuelvanderwaal commented 2 years ago

If you're done with your devnet candy machines you can run sugar withdraw which will find all the devnet candy machines and delete them. Once you're ready to upload to mainnet you need to use a mainnet RPC: https://docs.metaplex.com/guides/community#services.