Command line interface to the Metaplex SDK.
When running against the local
cluster you can enable amman integration in order to
diagnose transaction in the amman-explorer.
Simply run export MPLEX_AMMAN=1
in the same terminal from which you run the mplex
command.
TODO: we may provide an alternative command here, i.e. mplexa
or similar which will have this
environment variable set.
In order to get the same output that is shown in the below examples please export the DEBUG
variable in the same terminal that you run the below commands in via:
export DEBUG=mplex:(info|error)
In Windows Powershell please run the below instead:
$env:DEBUG = 'mplex:(info|error)'
❯ mplex airdrop A15Y2eoMNGeX4516TYTaaMErwabCrf9AB9mrzFohdQJz 10
mplex:info Dropping 10SOL to A15Y2eoMNG... on devnet (https://api.devnet.solana.com) +0ms
(defaults to drop to devnet)
(requires amman to be running in another terminal)
❯ mplex airdrop A15Y2eoMNGeX4516TYTaaMErwabCrf9AB9mrzFohdQJz 10 --cluster=local
mplex:info Dropping 10SOL to A15Y2eoMNG... on local (http://127.0.0.1:8899) +0ms
❯ export MPLEX_CLUSTER=local
❯ mplex airdrop A15Y2eoMNGeX4516TYTaaMErwabCrf9AB9mrzFohdQJz 10
mplex:info Dropping 10SOL to A15Y2eoMNG... on local (http://127.0.0.1:8899) +0ms