It's better to move it to the EAP forum
The host name (--host) in the patch command should be one of the host names defined in your topology.
Try pressing <Tab> key at this point of your command for some help:
[firstname.lastname@example.org:9999 /] patch --host=
and it will show you the list of the known hosts in your domain. Of course you can check the hosts names in the topology section of the Management Console.
after the right host, "apply <patch>" for apply the patch as in your first attempt.
Yes, the hosts are listed in /host=*, you can also type "ls host" in the CLI. You can configure the actual name in the management as part of the host.xml. Then you just have to use the "patch apply --host=<host-name> </path/to/the/patch>" command in the CLI.
In CLI after "patch apply "--host " option is no available
please give me the solution
patch --host was added in later version of EAP 6.x and is not present in 6.2 yet.