Trouble upgrading ocaml-lsp-server on Mac

So there should be a similar command that does the same on Mac. I tried to guess and failed so far