amctx is a cli tool to switch between Alertmanager instances for amtool.
It works by editing the ~/.config/amtool/config.yml file.
The aliases are stored in ~/.config/amctx/config.yml
go install github.com/Mohamed-elg/amctx@latest# add an alias
$ amctx prod=http://localhost:9093
alias 'prod' set with url: http://localhost:9093
# switch to another Alertmanager
$ amctx prod
switched to context 'prod'.
# list aliases
$ amctx
prod
dev