1# CLI Reference
2
3When MCP tools are unavailable, use `lune` CLI.
4
5## Creating tasks
6
7```bash
8lune task add "Title" -a AREA_KEY -n "$(cat <<'EOF'
9Note content
10EOF
11)"
12```
13
14<task_add_flags>
15-a --area Area key (required)
16-s --status Status (workflow-dependent)
17-n --note Task note (use - for stdin)
18-g --goal Goal key
19</task_add_flags>
20
21Output includes the task ID needed to replace `PLACEHOLDER_ID` in the note.
22
23## Updating notes
24
25```bash
26lune task update ID -n "$(cat <<'EOF'
27Full replacement content
28EOF
29)"
30```
31
32Notes are replaced entirely—reproduce original content when appending.
33
34## Listing areas
35
36```bash
37lune area list
38```