Crates.io | miraplex-sugar-cli |
lib.rs | miraplex-sugar-cli |
version | 1.2.3 |
source | src |
created_at | 2023-05-24 13:49:21.303102 |
updated_at | 2023-12-18 07:14:42.033597 |
description | Command line tool for creating and managing Miraplex Candy Machines. Derived/Forked from Metaplex. |
homepage | |
repository | https://github.com/miraland-labs/sugar |
max_upload_size | |
id | 873054 |
size | 914,233 |
Sugar is an alternative to the current Metaplex Candy Machine CLI. It has been written from the ground up and includes several improvements:
cargo
package management, including a binary distributable package ready to use;See the docs for full installation and usage instructions.
Note: This is a beta release of Sugar. Use at your own risk.
For macOS, Linux and Windows Subsystem Linux (WSL), run the following install script in your terminal:
bash <(curl -sSf https://sugar.metaplex.com/install.sh)
For Windows:
Download this installer binary and execute it. Since it is not a verified Windows binary you may have to choose "Run Anyway" from "More Info" on the pop-up Windows dialog.
Dependencies: When installing on Ubuntu or WSL (Windows Subsystem Linux), you may need to install some additional dependencies:
sudo apt install libudev-dev pkg-config unzip
Using Crates.io:
cargo install miraplex-sugar-cli
Build From Source:
cargo install --path ./
Set up your Miraland CLI config with an RPC url and a keypair:
miraland config set --url <rpc url> --keypair <path to keypair file>
Sugar will then use these settings by default if you don't specify them as CLI options, allowing commands to be much simpler. If you need help setting up Miraland CLI and creating a devnet
wallet, check the Candy Machine v2 documentation.
Create a folder named assets
to store your json and media file pairs with the naming convention 0.json, 0..png
, .jpg
, etc. This is the same format described in the Candy Machine v2 documentation.
You can then use the launch
command to start an interactive process to create your config file and deploy a Candy Machine to Miraland:
sugar launch
At the end of the execution of the launch
command, the Candy Machine will be deployed on-chain.