Local task execution without a web UI

Execute a single task locally inside your terminal
While we recommend the browser-based local development approach outlined on the Studio page, it is possible to run a task entirely in your terminal by disabling the Studio.
To execute your task locally:
bash
Copied
1
$ airplane dev --studio=false path/to/definition.task.yaml
If your task has any parameters, you'll be prompted:
bash
Copied
1
$ airplane dev --studio=false my_task.task.yaml
2
? Dry Run (--dry_run): [Use arrows to move, type to filter]
3
> Yes
4
No
These inputs can also be passed as CLI args:
bash
Copied
1
$ airplane dev --studio=false my_task.task.yaml -- --help
2
3
Test Task Usage:
4
--dry_run (default: true)
5
6
$ airplane dev --studio=false my_task.task.yaml -- --dry_run=false
If you need to load in config variables or reference resources in your task, you can include them in your dev config file. If the dev config file is not a file in the current directory named airplane.dev.yaml, you can pass in the name of the location of the dev config file like so:
bash
Copied
1
airplane dev --studio=false --config-path my-airplane-config.dev.yaml my_task.task.yaml