wealthineer-program-metadata-0.1.0 is not a library.
Metadata Rust CLI
This CLI is used to interact with the metadata program.
Usage
Commands
IDL Management
# Upload an IDL from local file
# Upload an IDL from URL
# Download an IDL
)
)
Metadata Management
# Upload metadata from local file
# Upload metadata from URL
# Download metadata
)
)
Examples:
# Upload IDL using default keypair
# Upload IDL from URL with custom keypair and priority fees
# Upload metadata using default keypair
# Download IDL to default path (idl.json)
# Upload metadata from URL
# Download metadata to custom path
Testing the Rust CLI against a local validator from within this repository
Start your local validator:
Make sure you point your cluster to localnet and fix the program id in Anchor.toml.
Fix the program id in programs/upload-idl-program/src/lib.rs and rust_cli/src/codama_sdk/programs.rs.
Deploy the metadata program using anchor:
Airdrop SOL to your keypair - make sure to point your solana cli to localnet:
Deploy any program using the keypair in tests/wallet.json:
Run the CLI upload for the program you just deployed: