Export Tasks¶
The tasks export command exports all tasks and groups as JSON. Output can be written to a file or printed to stdout.
Parameters¶
| Parameter | Description |
|---|---|
--output, -o |
Output file path (default: stdout). |
🖥️ Basic Usage¶
Usage: easytask tasks export [OPTIONS]
Export all tasks and groups as JSON.
╭─ Options ───────────────────────────────────────────────────────────────────╮
│ --output -o PATH Output file path (default: stdout) │
│ --help -h Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────╯
Example — Export to File¶
Example — Export to Stdout¶
{
"tasks": [
{
"id": 42,
"name": "data_processing",
"cmd": "/usr/bin/python3 /scripts/process.py",
...
}
],
"groups": [
{
"id": 1,
"name": "daily",
...
}
]
}