You can't specify a domain directly for most of the asadmin
commands.
But you can specify the Domain Administration Server, which controls the domain. It identifies the domain indirectly. To do this just use --host
and --port
parameters:
asadmin --host localhost --port 4848 create-custom-resource ...
See also: