What you’ll need
- An ngrok API key.
- An active Cloud Endpoint.
Configure your API key
If this is your first time using the ngrok API, add your API key to your config file:You can verify that the API key is set by running:You should see a response with information about your authtoken.
Get the ID of the endpoint you want to modify
Next you’ll need your endpoint’s ID.
To see a complete list of your endpoints, run:Find the endpoint you want to modify and note its ID, which is a long character string beginning with
ep_.Update the endpoint with the new domain
Run the following command to change your Cloud Endpoint’s URL, replacing
$YOUR_ENDPOINT_ID and $YOUR_DOMAIN with their respective values from the previous steps: