Problem with mapps init when scaffolding and setting up the dev environment

I’m following the instructions on Monday’s Creating and updating apps page. When I add a ready-made feature I need to run a command to set up the dev environment and scaffold the feature:

npx @mondaydotcomorg/monday-cli@latest scaffold run ./ quickstart-integrations -s 2724804573259039201326c8dd9ecc20 -t integration-10138401

When I run the command I get this error: Access token is missing, please run: "mapps init".

If I run mapps init, I get command not found: mapps.

If I run npx @mondaydotcomorg/monday-cli@latest --help it looks like init isn’t available in this version of the CLI.

I have tried force clearing and removing the npm cache and reinstalling the Monday.com CLI without success. What else can I do to try and fix this?

1 Like

In case anyone needs this in the future, I solved this issue with these steps:

  1. Downloaded the files [from the repo](https://github.com/mondaycom/welcome-apps).
  2. Navigated in the terminal (I’m on a Mac) to the project folder.
  3. Ran npm install.
  4. Got the Access token is missing error again.
  5. I didn’t know how to resolve this other than by installing the apps-cli package globally using npm install -g @mondaycom/apps-cli.
  6. After install I could run mapps init successfully. Got a request for my monday.com api access token.
  7. Ran npm run expose, opened the tunnel successfully and received the URL I needed for Step 4.

I feel I shouldn’t have added the apps-cli package globally but I’m not sure how I could have solved this otherwise. If anyone has any thoughts on this please add them here. Thanks!

3 Likes

thanks for this!

I’ve found that I did need to globally install mapps init and then run that and add my API credential. Once I did that, the tutorial instructions worked as expected. I didn’t need to download the welcome apps repo from Github. The key was in running mapps init.

Thanks, that’s good to know.