pub enum Commands {
CreateConfig {
config: Option<String>,
rpc_url: Option<String>,
keypair: Option<String>,
assets_dir: String,
},
Launch {
assets_dir: String,
keypair: Option<String>,
config: String,
rpc_url: Option<String>,
cache: String,
strict: bool,
},
Mint {
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
number: Option<u64>,
candy_machine: Option<String>,
},
Update {
config: String,
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
new_authority: Option<String>,
candy_machine: Option<String>,
},
Deploy {
config: String,
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
},
Upload {
assets_dir: String,
config: String,
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
},
Withdraw {
candy_machine: Option<String>,
keypair: Option<String>,
rpc_url: Option<String>,
list: bool,
},
Validate {
assets_dir: String,
strict: bool,
},
Verify {
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
},
Show {
keypair: Option<String>,
rpc_url: Option<String>,
cache: String,
candy_machine: Option<String>,
},
}Variants
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
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
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
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
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
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
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
Validate
Fields
assets_dir: StringAssets directory to upload, defaults to “assets”
strict: boolStrict mode: validate against JSON metadata standard exactly
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
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”
Show the on-chain config of an existing candy machine
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>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn update_from_arg_matches<'b>(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches<'b>(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches to self.
sourceimpl Subcommand for Commands
impl Subcommand for Commands
sourcefn augment_subcommands<'b>(__clap_app: App<'b>) -> App<'b>
fn augment_subcommands<'b>(__clap_app: App<'b>) -> App<'b>
sourcefn augment_subcommands_for_update<'b>(__clap_app: App<'b>) -> App<'b>
fn augment_subcommands_for_update<'b>(__clap_app: App<'b>) -> App<'b>
sourcefn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether Self can parse a specific subcommand
Auto Trait Implementations
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more