The Correct command should be something like following:
./jboss-cli.sh -c controller=remoteIP:9990 --user=admin --password=admin@123 --command="deploy /PATH/TO/test.war"
If you get message like "'test.war' already exists in the deployment repository" which means your application was already deployed , this can be verified by looking at the jboss profile (like standalone.xml file there should be a tag <deployments> with your app info) So undeploy the app again and then deploy to verifiy the same or run the following command to list already existing deployed applications:
./jboss-cli.sh -c controller=remoteIP:9990 --user=admin --password=admin@123 --command="deployment-info"
Thank you that is correct! I am wondering if this is something that should be clearer on the documentation.