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

config: Option<String>

Path to the config file

rpc_url: Option<String>

RPC Url

keypair: Option<String>

Path to the keypair file [default: solana config or “~/.config/solana/id.json”]

assets_dir: String

Path to the directory with the assets

Interactive process to create the config file

Launch

Fields

assets_dir: String

Path 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: String

Path to the config file

rpc_url: Option<String>

RPC Url

cache: String

Path to the cache file

strict: bool

Strict 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”

rpc_url: Option<String>

RPC Url

cache: String

Path to the cache file, defaults to “cache.json”

number: Option<u64>

Amount of NFTs to be minted in bulk

candy_machine: Option<String>

Address of candy machine to mint from.

Mint one NFT from candy machine

Update

Fields

config: String

Path 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”

rpc_url: Option<String>

RPC Url

cache: String

Path to the cache file, defaults to “cache.json”

new_authority: Option<String>

Pubkey for the new authority

candy_machine: Option<String>

Address of candy machine to update.

Update the candy machine config on-chain

Deploy

Fields

config: String

Path 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”

rpc_url: Option<String>

RPC Url

cache: String

Path to the cache file, defaults to “cache.json”

Deploy cache items into candy machine config on-chain

Upload

Fields

assets_dir: String

Path to the directory with the assets to upload

config: String

Path to the config file

keypair: Option<String>

Path to the keypair file [default: solana config or “~/.config/solana/id.json”]

rpc_url: Option<String>

RPC Url

cache: String

Path to the cache file

Upload assets to storage and creates the cache config

Withdraw

Fields

candy_machine: Option<String>

Address of candy machine to withdraw funds from.

keypair: Option<String>

Path to the keypair file, uses Sol config or defaults to “~/.config/solana/id.json”

rpc_url: Option<String>

RPC Url

list: bool

List available candy machines, no withdraw performed

Withdraw funds from candy machine account closing it

Validate

Fields

assets_dir: String

Assets directory to upload, defaults to “assets”

strict: bool

Strict 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”

rpc_url: Option<String>

RPC Url

cache: String

Path 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”

rpc_url: Option<String>

RPC Url

cache: String

Path to the cache file, defaults to “cache.json”

candy_machine: Option<String>

Address of candy machine

Show the on-chain config of an existing candy machine

Trait Implementations

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more

Assign values from ArgMatches to self.

Append to App so it can instantiate Self. Read more

Append to App so it can update self. Read more

Test whether Self can parse a specific subcommand

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more