How to set nREPL with Clojure CLI (tools.deps) & figwheel-main

I want to use an nREPL server to connect from Emacs Cider with Clojure CLI (tools.deps, not Leiningen) & figwheel-main. How do I set up my deps.edn or else?


I know there're nice examples for setups with Leingen&figwheel-main and tools.deps&figwheel-sidecar.

Leingen&figwheel-main: https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl

tools.deps&figwheel-sidecar: https://functionalbytes.nl/clojure/nodejs/figwheel/repl/clojurescript/cli/2017/12/20/tools-deps-figwheel.html


This article (https://figwheel.org/docs/editor-integration.html) seems to for what I want to do, but I don't find how to set environment up in real.