Staging/production --server path?

Here is the situation. I have two env of server

how can I change --server option of testflight’s build dynamically to test new code on testflight? (i.e how to change hot code push url )?

Was anyone able to accomplish this at some point?