pub enum Commands {
Show 18 variants
Bundlr {
keypair: Option<String>,
rpc_url: Option<String>,
action: BundlrAction,
},
Collection {
command: CollectionSubcommands,
},
CreateConfig {
config: Option<String>,
rpc_url: Option<String>,
keypair: Option<String>,
assets_dir: String,
},
Deploy {
config: String,
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
},
Freeze {
command: FreezeSubcommands,
},
Hash {
config: String,
cache: String,
compare: Option<String>,
},
Launch {
assets_dir: String,
keypair: Option<String>,
config: String,
rpc_url: Option<String>,
cache: String,
strict: bool,
skip_collection_prompt: bool,
},
Mint {
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
number: Option<u64>,
receiver: Option<String>,
candy_machine: Option<String>,
},
Reveal {
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
config: String,
},
Show {
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
candy_machine: Option<String>,
unminted: bool,
},
Sign {
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
mint: Option<String>,
candy_machine_id: Option<String>,
},
Thaw {
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
config: String,
all: bool,
candy_machine: Option<String>,
nft_mint: Option<String>,
},
UnfreezeFunds {
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
candy_machine: Option<String>,
},
Update {
config: String,
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
new_authority: Option<String>,
candy_machine: Option<String>,
},
Upload {
assets_dir: String,
config: String,
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
},
Validate {
assets_dir: String,
strict: bool,
skip_collection_prompt: bool,
},
Verify {
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
},
Withdraw {
candy_machine: Option<String>,
keypair: Option<String>,
rpc_url: Option<String>,
list: bool,
},
}Variants
Bundlr
Fields
keypair: Option<String>Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”
action: BundlrActionInteract with the bundlr network
Collection
Fields
command: CollectionSubcommandsManage the collection on the candy machine
CreateConfig
Fields
keypair: Option<String>Path to the keypair file [default: solana config or “~/.config/solana/id.json”]
assets_dir: StringPath to the directory with the assets
Interactive process to create the config file
Deploy
Fields
config: StringPath to the config file, defaults to “config.json”
keypair: Option<String>Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”
cache: StringPath to the cache file, defaults to “cache.json”
Deploy cache items into candy machine config on-chain
Freeze
Fields
command: FreezeSubcommandsCommands for the Candy Machine Freeze feature
Hash
Fields
config: StringPath to the config file, defaults to “config.json”
cache: StringPath to the cache file, defaults to “cache.json”
Generate hash of cache file for hidden settings.
Launch
Fields
assets_dir: StringPath to the directory with the assets to upload
keypair: Option<String>Path to the keypair file [default: solana config or “~/.config/solana/id.json”]
config: StringPath to the config file
cache: StringPath to the cache file
strict: boolStrict mode: validate against JSON metadata standard exactly
skip_collection_prompt: boolSkip collection validate prompt
Create a candy machine deployment from assets
Mint
Fields
keypair: Option<String>Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”
cache: StringPath to the cache file, defaults to “cache.json”
Mint one NFT from candy machine
Reveal
Fields
keypair: Option<String>Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”
cache: StringPath to the cache file, defaults to “cache.json”
config: StringPath to the config file
Reveal the NFTs from a hidden settings candy machine
Show
Fields
keypair: Option<String>Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”
cache: StringPath to the cache file, defaults to “cache.json”
unminted: boolDisplay a list of unminted indices
Show the on-chain config of an existing candy machine
Sign
Fields
keypair: Option<String>Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”
cache: StringPath to the cache file, defaults to “cache.json”
Sign one or all NFTs from candy machine
Thaw
Fields
keypair: Option<String>Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”
cache: StringPath to the cache file, defaults to “cache.json”
config: StringPath to the config file
all: boolUnthaw all NFTs in the candy machine.
Thaw a NFT or all NFTs in a candy machine.
UnfreezeFunds
Fields
keypair: Option<String>Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”
cache: StringPath to the cache file, defaults to “cache.json”
Unlock treasury funds after freeze is turned off or expires.
Update
Fields
config: StringPath to the config file, defaults to “config.json”
keypair: Option<String>Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”
cache: StringPath to the cache file, defaults to “cache.json”
Pubkey for the new authority
Update the candy machine config on-chain
Upload
Fields
assets_dir: StringPath to the directory with the assets to upload
config: StringPath to the config file
keypair: Option<String>Path to the keypair file [default: solana config or “~/.config/solana/id.json”]
cache: StringPath to the cache file
Upload assets to storage and creates the cache config
Validate
Fields
assets_dir: StringAssets directory to upload, defaults to “assets”
strict: boolStrict mode: validate against JSON metadata standard exactly
skip_collection_prompt: boolSkip collection prompt
Validate JSON metadata files
Verify
Fields
keypair: Option<String>Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”
cache: StringPath to the cache file, defaults to “cache.json”
Verify uploaded data
Withdraw
Fields
keypair: Option<String>Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”
list: boolList available candy machines, no withdraw performed
Withdraw funds from candy machine account closing it
Trait Implementations
sourceimpl FromArgMatches for Commands
impl FromArgMatches for Commands
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
sourcefn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
sourcefn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
ArgMatches to self.sourcefn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
ArgMatches to self.sourceimpl Subcommand for Commands
impl Subcommand for Commands
sourcefn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
sourcefn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
sourcefn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand