How can I make a command that makes all my wolves sit and stand?

Solution 1:

You can use /execute to make every wolf execute the /data command and modify its own NBT data:

/execute as @e[type=wolf] run data merge entity @s {Sitting:1b}