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

[Bug]: Required option keypair not specified. #2087

Closed yekta-yengi closed 2 years ago

yekta-yengi commented 2 years ago

Which package is this bug report for?

candy machine cli

Issue description

I'm trying to upload my assets to devnet but i'm getting the keypair error. I've done the getting started wallet configurations.

Following the docs https://docs.metaplex.com/candy-machine-v2/creating-candy-machine when i try to run the command i get the error: required option '-k, --keypair ' not specified. Also it's not getting other options.

Also tried different combinations of directory paths and its not working

Command

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

Relevant log output

error: required option '-k, --keypair <path>' not specified
-e : The term '-e' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct 
and try again.
At line:2 char:5
+     -e devnet \
+     ~~
    + CategoryInfo          : ObjectNotFound: (-e:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

-k : The term '-k' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct 
and try again.
At line:3 char:5
+     -k devnet.json \
+     ~~
    + CategoryInfo          : ObjectNotFound: (-k:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

-cp : The term '-cp' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is 
correct and try again.
At line:4 char:5
+     -cp config.json \
+     ~~~
    + CategoryInfo          : ObjectNotFound: (-cp:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

-c : The term '-c' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct 
and try again.
At line:5 char:5
+     -c example \
+     ~~
    + CategoryInfo          : ObjectNotFound: (-c:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

assets : The term 'assets' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is 
correct and try again.
At line:6 char:5
+     assets
+     ~~~~~~
    + CategoryInfo          : ObjectNotFound: (assets:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Operating system

Windows 10

Priority this issue should have

Low (slightly annoying)

Check the Docs First

spreadcharm commented 2 years ago

If you are on Windows OS, please remove slash and make one line command. It would work.

github-actions[bot] commented 2 years ago

This Issue has received no activity for 30 days. We will close it in 2 days, please reopen if you are still experiencing this issue.