Heya @zenseb - I’m not sure of the best workflow for you, but have proxied the queries around the CLI’s behavior with --alias to some experts who might be able to help us out.
I can tell you that:
- the names aren’t temporary and as of today, will persist for as long as you don’t delete the site. We may change this in the future (every deploy is always available forever), but it would take some major work on our side so it won’t happen very soon at least!
- you probably shouldn’t even be using
--alias
JUST for the purpose of creating domain aliases which you can also configure via our API. These WOULD always work, forever, as long as you keep DNS pointing to us, since they would reflect the current production deploy (whereas the --alias deploys potentially would get out of sync unless you ran the CLI X times for X aliases, each time you updated your site’s code).