'Candy Machine - Unable to upload files

I am following a tutorial and am on the step where we are uplaoding the metadata and files. The tutorial tells me to use the the following command:

npx ts-node js/packages/cli/src/candy-machine-v2-cli.ts upload ./assets --env devnet --keypair \<PATH\>

When I run this command with my path, it says :

error: required option '-cp, --config-path <string>' not specified

When I type what I think is the config path, it says the keypair does not exist.

I am quite confused how to pass this step, could someone please help me?

Thanks

I am not quite sure what to do.



Solution 1:[1]

Your config.json file have to be something like this. If you go through the metaplex documentation, they guide you through all the steps you have to follow from the beginning.

{
        "price": 1,
        "number": 3333,
        "gatekeeper": null,
        "solTreasuryAccount": "<Your Solana Treasury Wallet Address",
        "splTokenAccount": null,
        "splToken": null,
        "goLiveDate": "1 April 2022 20:00:00 GMT",
        "endSettings": null,
        "whitelistMintSettings": {
            "mode" : { "neverBurn" : true },
            "mint" : "<Solana Address of Minter of the whitelist tokens",
            "presale" : true,
            "discountPrice" : null
        },
        "hiddenSettings": null,
        "storage": "arweave-sol",
        "ipfsInfuraProjectId": null,
        "ipfsInfuraSecret": null,
        "nftStorageKey": null,
        "awsS3Bucket": null,
        "noRetainAuthority": false,
        "noMutable": false
    }

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Bengican Altunsu