Reputation: 12619
In Deno, I know that I can run a command like so:
const process = Deno.run({ cmd: ["echo", "hello world"] })
How can I run my command with a different working directory?
Upvotes: 4
Views: 768
Reputation: 2380
Use cwd to specify a different path relative to your working directory (or use an absolute path).
cwd
const process = Deno.run({ cmd: ["echo", "hello world"], cwd: "/path/to/dir" })