metaplex-foundation / sugar

Candy Machine Rust CLI.
Apache License 2.0
198 stars 112 forks source link

Allow an existing collection on "sugar deploy" #433

Closed AlexITC closed 1 year ago

AlexITC commented 1 year ago

sugar deploy now accepts an optional argument (--collection-mint <COLLECTION_MINT>), which allows creating a candymachine without creating a collection.

Fixes #431

Tested with sugar upload then sugar deploy then sugar mint:

  1. Define 0.json/0.jpg with no collection.json, then, sugar deploy --collection-mint <COLLECTION_MINT>, minted NFT (new behavior).
  2. Define 0.json/0.jpg with no collection.json, create a candymachine with js code and set the output to cache.json, works as before.
  3. Define 0.json/0.jpg and collection.json/collection.png, works as before.