In the following example, the tasks.json file includes a custom nrf-connect-process type called my-process, which executes the ls command with the argument -al whenever it is invoked:
{
"version": "2.0.0",
"tasks": [
{
"type": "nrf-connect-process",
"label": "my-process",
"command": "ls",
"args": ["-al"]
}
]
}