First, you need to find out what your screen is named. Find that by typing
xrandr --query
Use the screen name in the following command
xrandr --output screen-name --rotate inverted