For running included Taskfiles in a different directory, see Include Other Taskfile to Run on Different Directory.
dir keyword to run a task’s commands in a different directory.
Taskfile.yml
If the specified directory does not exist, Task will create it automatically.
Demo and output