Clojurescript's built-in browser REPL is on port 9000 by default but that clashes with ZScaler on my work laptop so I use port 8090 instead. It took a few goes to get it working but now I have it sorted.
clojure -M -m cljs.main -v -p 8090 -co '{:closure-defines {"clojure.browser.repl.PORT" 8090}}' -c foo.core -r
There are some points in the documentation that might benefit from clarification. The -p flag is not mentioned on The REPL and main entry points but seems to serve the same purpose as :port described on REPL Options because this also works:
clojure -M -m cljs.main -v -ro '{:port 8090}' -co '{:closure-defines {"clojure.browser.repl.PORT" 8090}}' -c foo.core -r
What is a little bit surprising is that :port is only mentioned under the Node REPL Options section but applies to browser REPLs too.
Not really a question in all this but I wanted to share this for others who might get stuck.
Versions for posterity: Clojure CLI version (deps.clj) 1.12.2.1565 on Windows 11 and ClojureScript 1.11.54.