deploy --name=MyDeployment --server-groups=group1,group2
Ah , it was my mistake :
deploy /home/me/MyApp --server-groups=group1
so i got the exception : MyApp exists already ....
surely, "--name" is for deployed app
You can also use --name the first time you deploy the app. In that case you are saying that you don't want the name to be the same as the deployable's file name. This is especially handy when you want to deploy two versions of the same app.
deploy /home/me/MyApp.war --name=MyApp-version2