Once your dog is barking on command, place a treat in front of its nose while it's barking to get it to stop and sniff. Then, say quiet as soon as it stops barking, and give it the reward. When you feel confident that your dog understands "quiet," have someone ring the doorbell, give the command, and reward your dog when it stops barking.