How to access the darktable and darktable-cli executables on macOS?

Hi!

I’ve just installed the most recent version of darktable (5.0.0) with the command “brew install --cask darktable”, and I can launch the app by double-clicking on the icon in the Applications folder of Finder. However, I see from section 12.5 of the current documentation (https://darktable-org.github.io/dtdocs/en/darktable_user_manual.pdf) that it can also be called from the command line with specific options, and that there is also a separate “darktable-cli” executable. Yet, if I call or search for those executables from a Terminal I don’t see any of those:

MicMac3 ~ % darktable
zsh: command not found: darktable
MicMac3 ~ % which darktable
darktable not found
MicMac3 ~ % whereis darktable
darktable:
MicMac3 ~ % whereis darktable.app
darktable.app:
MicMac3 ~ % darktable-cli
zsh: command not found: darktable-cli
MicMac3 ~ % 

What should I do to access those executables from a Terminal?

Thanks for clarifying this point.

On macOS, the executables are not added to your path, that’s why you can’t call them from any directory. If you cd into the darktable app, I believe the executables are in bin.

I’m still on 4.8, but I expect it’s the same on 5.0.

/Applications/darktable.app/Contents/MacOS/darktable is the main executable.

All of the rest of the executables are in the /Applications/darktable.app/Contents/MacOS/ directory.

Thanks a lot to both @paperdigits and @Bordwall: I did find those executables in “/Applications/darktable.app/Contents/MacOS/”. I’m still puzzled about why the shell functions “whereis” and “which” were not able to find those locations, though I suspect this may be more a macOS than a darktable issue. Thanks again for your support.

Because they’re not on your $PATH.

Yes.

Great! Thanks again.