How do I unmaximize a window with xdotool or similar by command line?

wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz