How to run clj from an arbitrary directory

In case you mean: from anywhere in your filesystem you would like to execute your project using clj, I’d do it like this:

Make a script script in your project directory (or anywhere you like).

#!/bin/bash

cd /tmp/yourproject
clj -m main

and add the script to the PATH:

export PATH=$PATH:/tmp/location/of/your/script

chmod +x /location/of/your/script

Now you can call script from anywhere.