If you want to fully automate it, you will need to create a complete bash script for the router to execute the desired CLI configure commands and to do that you will have to google to find the special sauce for doing config in scripts.
Then you need to set up vpn access or ssh access with ssh keys (PKI). If the latter, you can execute remote commands via ssh without creating a shell. See man ssh.
Since you are a developer, that should be enough for you to work out the rest.