Opam 2 beta: how to list and switch ocaml version?



Is it possible to list available ocaml versions with opam 2-beta?

opam 1 had “opam switch list” but opam 2 does not.

Could not find anything in the opam 2 documentation about this.


I think opam show ocaml should do that?


I think opam's cli became a bit confusing in v2. It’s opam switch list-available (see https://github.com/ocaml/opam/issues/3001).


It also supports searching, e.g. opam switch list-available base will give the available base compiler versions, and opam switch list-available buckle can show the BuckleScript switch, etc.