Pulse Audio control from script

How do I change Pulse Audio’s volume settings from a script or console?

Thanks in advance.

Two useful man pages

man pulse-cli-syntax
man pactl

List available sinks…

pactl list sink-inputs

For example, assuming sink output #0, then to set volume at 50% use

pactl set-sink-volume 0 50%

To decrease level by 20% do

pactl set-sink-volume 0 -20%

Thank you very much deano_ferrari. I was not aware of any cli commands as “man pavucontrol” showed “No manual entry for pavucontrol”. There is much to study and learn from your links.