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: FreezeCommand,
},
Guard {
command: GuardCommand,
},
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>,
},
Airdrop {
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
candy_machine: Option<String>,
airdrop_list: String,
},
Reveal {
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
config: String,
timeout: Option<u64>,
},
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>,
},
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
Interactive process to create the config file
Deploy
Fields
Deploy cache items into candy machine config on-chain
Freeze
Fields
command: FreezeCommandManage freeze guard actions
Guard
Fields
command: GuardCommandManage guards on the candy machine
Hash
Fields
Generate hash of cache file for hidden settings.
Launch
Fields
Create a candy machine deployment from assets
Mint
Fields
Mint one NFT from candy machine
Airdrop
Fields
Airdrop NFTs from candy machine
Reveal
Fields
Reveal the NFTs from a hidden settings candy machine
Show
Fields
Show the on-chain config of an existing candy machine
Sign
Fields
Sign one or all NFTs from candy machine
Update
Fields
keypair: Option<String>Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”
Pubkey for the new authority
Update the candy machine config on-chain
Upload
Fields
Upload assets to storage and creates the cache config
Validate
Fields
Validate JSON metadata files
Verify
Fields
Verify uploaded data
Withdraw
Fields
Withdraw funds a from candy machine account closing it
Trait Implementations§
source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn 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>
source§fn 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.source§fn 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.source§impl Subcommand for Commands
impl Subcommand for Commands
source§fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
source§fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand