How do you train a dog to stop barking on command?
Usually, problem barkers bark because they are bored or want your attention. If they are used to getting a lot of attention from you, they don’t know how to behave when alone. Usually, we have trained the dog that if they bark, we will immediately shower them with attention to find out what they want. We want our dogs to be happy, so we spoil them: our dogs get treats and petting whenever they wish. It is entirely normal for owners to act this way and entirely normal for dogs to complain when they feel neglected.
First of all, your dog must learn that barking for your attention doesn't work. Try ignoring him when he barks, and reward him with attention and praise when he stops. If you are persistent and consistent with demanding the behavior you want from him (quiet), then rewarding him, he’ll get the picture.
If the problem persists, contact a reputable dog trainer who can give you additional tools and tips to modify this unwanted behavior.
Wishing you a quiet pooch!