The config file of ngrok
allows only a single authtoken
line, and all resources available to you as a user (e.g., reserved hostnames) are based on the account associated with the authtoken.
If you have multiple ngrok accounts--for example, a professional (work) account and a personal account--and you want to use them with different projects, your only option is to add --config secondary_filename.yml
to the command-line arguments to make use of another config.
How can you use your environment manager to switch to another ngrok account based on environment variables?
I am a Python user, so my use case applies mainly to virtualenvwrapper
/workon
, but this can probably equally apply to other environment managers (Ruby bundler?)