tenderly-cli
tenderly-cli copied to clipboard
Improve tenderly login error message
I am on a Linux machine and installed Tenderly with the curl/sudo approach. When I tried to do my first tenderly login, I got the following error message:
$ tenderly login
✔ Access key can be generated at https://dashboard.tenderly.co/account/authorization
✔ Access key: xxx
Couldn't write global config file
I looked at ~/.tenderly which was set to the root user from some other time I had apparently tried to use Tenderly in some capacity:
drwxr-xr-x 3 root root 4.0K Feb 23 2022 .tenderly
I had to chown -R the folder. Inside it, there was an empty config.yaml directory which I also had to delete. After doing these two steps I was able to tenderly login successfully but it would have been helpful for the initial error message to guide me into where to look.
I had to do sudo tenderly login --authentication-method access-key --access-key {your_access_key} --force