0

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

1 Answers1

0

The reason for this is that, unfortunately, ngrok doesn't version its docs. If you installed ngrok through pyngrok, you installed v2, but ngrok's site now hosts v3 docs, as it came out recently. The v2 command to install your auth token is:

ngrok authtoken <YOUR API KEY>

You can peruse the v2 docs here.

alexdlaird
  • 1,174
  • 12
  • 34