Insufficient permissions while running Wix CLI app in Dev or preview mode

Problem:
I’m getting ‘Insufficient permissions’ error while trying to run the app in dev or preview mode. Initially the app had been created for my main account, but I updated appId in wix.config.json for a new app from invited account. I have Account Admin (Co-Owner) role.

What are you trying to achieve:
Trying to upload the app using Wix CLI

Question:
How to deploy the app to the app in selected Workspace?