The question is about vim's command-line (also known as the colon line). That does not wrap.
However, vim documents a special command-line window, for entering complex commands, which helps a little.
If you edit the command-line window, you can set its wrap
mode separately from the other windows, using the local setl
option e.g.,
:setl wrap