From the command-line (command prompt, terminal) of your operating system…
On Windows:
And then:
On Linux it would be the same, most probably without having to use a cd
command. On a Mac, I don’t know.
See also: darktable 4.2 user manual - darktable