This command ngrok config add-authtoken <API KEY>
on the documentation doesn't work for me.
If you are having a hard time looking for a solution try this code ngrok authtoken <YOUR API KEY>
and it will add your ngrok API KEY to the config file which is
ngrok.yml in ~/.ngrok2/ngrok.yml
Note: This helped on a windows machine