Turn on/off all the digital pins

I want to know if there is a way for turning on/off the digital pins just with a "command" for Arduino Uno.
For example: application in which there are a lot of lights, the posibility to turn on or turn off all the lights just with a command.

Really appreciate your inputs

Use a For loop

There is no "one command" to do that, but as AppleAssassin, says, you can do it in code,and take less than 1 thousandth of a second to complete.
Is that to slow, or you want less lines of code?