cmdngrok

What is the reason for the error message: ERROR: unknown command "authtoken" for "ngrok"?


Can't register ngrok authentication token because command authtoken is unknown. I use Windows.

Command prompt window opened in directory %USERPROFILE%:

ngrok authtoken Ilqg127kTguoX7udoV13ACsgCYe_3fhfvgwYr4e4bNsYUaT50
ERROR:  unknown command "authtoken" for "ngrok"

ngrok --version
ngrok version 3.0.0-rc1

ngrok -help
NAME:
  ngrok - tunnel local ports to public URLs and inspect traffic

USAGE:
  ngrok [command] [flags]

Solution

  • ngrok authtoken TOKEN_VALUE
    

    Works on Windows, just ensure to add or have an ngrok.yml present in the C://Users/<My Device>/.ngrok2/ directory.