You cannot specify a domain directly for most teams asadmin.
But you can specify the domain administration server that controls the domain. It recognizes the domain indirectly. To do this, simply use the parameters --hostand --port:
asadmin --host localhost --port 4848 create-custom-resource ...
See also: