metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.32k stars 6.26k forks source link

Upload command issue #1578

Closed doranring closed 2 years ago

doranring commented 2 years ago

When I run the upload command:

ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts upload \ -e devnet \ -k ~/.config/solana/devnet.json \ -cp config.json \ -c example \ ./assets

a huge error pops up. it basically says in french that every option starting with an (-) in front of it is not recpgnise as a command. Anyone know how to fix this issue? image

scxr commented 2 years ago

put it all onto one line, like so: ts-node .\packages\cli\src\candy-machine-v2-cli.ts upload -e devnet -k .\wallets\seller.json -cp .\config.json ./MyAssets -c test

doranring commented 2 years ago

I have used this command to try and make it work: ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts upload -e devnet -k ~/.config/solana/devnet.json -cp config.json -c example-assets

But now it tells me: missing required argument 'directory' image

Do you see anything wrong with my command ?

scxr commented 2 years ago

you arent giving it any assets to upload

doranring commented 2 years ago

What do you mean by i'm not giving it any assets to upload? How would you make it work in this case. Sorry if i'm annoying I am a total noob to this and you seem to know your stuff.

21e8 commented 2 years ago

you need to give it a path. after upload must be a path with all the assets and then some more parameters like your key ect....

ts-node cli upload ~/nft-test/mini_drop --keypair ~/.config/solana/id.json