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”

rpc_url: Option<String>

RPC Url

action: BundlrAction

Interact with the bundlr network

Collection

Fields

Manage the collection on the candy machine

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

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

Freeze

Fields

Commands for the Candy Machine Freeze feature

Hash

Fields

config: String

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

cache: String

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

compare: Option<String>

Compare a provided hash with a cache file to check integrity.

Generate hash of cache file for hidden settings.

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

skip_collection_prompt: bool

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

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

receiver: Option<String>

Public key of the receiver of the minted NFT, defaults to keypair

candy_machine: Option<String>

Address of candy machine to mint from.

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”

rpc_url: Option<String>

RPC Url

cache: String

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

config: String

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

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

unminted: bool

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

rpc_url: Option<String>

RPC Url

cache: String

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

mint: Option<String>

Mint id for single NFT to be signed

candy_machine_id: Option<String>

Candy machine id.

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”

rpc_url: Option<String>

RPC Url

cache: String

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

config: String

Path to the config file

all: bool

Unthaw all NFTs in the candy machine.

candy_machine: Option<String>

Address of candy machine to update [defaults to cache value].

nft_mint: Option<String>

Address of the NFT to thaw.

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”

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 to update.

Unlock treasury funds after freeze is turned off or expires.

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

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

Validate

Fields

assets_dir: String

Assets directory to upload, defaults to “assets”

strict: bool

Strict mode: validate against JSON metadata standard exactly

skip_collection_prompt: bool

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

rpc_url: Option<String>

RPC Url

cache: String

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

Verify uploaded data

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

Trait Implementations

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Append to Command so it can instantiate Self. Read more
Append to Command 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