How do I use a different wallet for the Diode CLI?

Use the -dbpath option.

For example:

diode -dbpath=/home/pi/.config/diode2/private.db publish -public 80:80