Command for adding API KEY to ngrok.yml file doesn't work

431 Views Asked by At

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

There are 1 best solutions below

2
On BEST ANSWER

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.