N
ngrok CLI
Details
- Command
-
ngrok - Docs
- https://ngrok.com/docs/agent/cli
Authentication
$ ngrok config add-authtoken <token> Get your agent authtoken from the ngrok dashboard's Your Authtoken page, then configure the local agent with ngrok config add-authtoken <token>. The agent docs note you can provision additional authtokens in the dashboard or via API, and the CLI reference includes the add-authtoken command.
$ ngrok config add-api-key <token> In the ngrok dashboard, open API Keys and generate a new API key. The API overview shows using it as Authorization: Bearer {API Key} for https://api.ngrok.com, and the CLI can save it with ngrok config add-api-key "{API Key}".