Is it possible to use Bonjour from command line? For example if I want to register a service I type something like that: bonjour -register service_name port. And then Bonjou
Yes, it is certainly possible. Take a look at the man page for mDNS