# Comments and reactions

Source: https://projectfeed.app/docs/cli/posts-content/comments

Add comments and reactions to posts with pf. List, edit, or delete comments from a script or terminal.

## Comments

Add, edit, and delete comments on posts, reply in threads, and review media with annotations you can resolve or turn into tasks. Alias: `pf c`

 `pf comments list [postId]` List comments and annotations on a post, or across every post you can read when no post is given. Follows every page unless --limit or --cursor is set.

alias: pf c ls

Options

-   `--project` string
    
    Workspace list only: comments on posts in this project
    
-   `--review-status` string
    
    Only annotations with this review status: comment, needs_changes, approved, question, or suggestion
    
-   `--author` string
    
    Only comments by this user ID, or me
    
-   `--created-via` string
    
    web, api, slack_bot, discord_bot, ai_aggregation, inbound_webhook, or mobile
    
-   `--since` string
    
    Only comments created after this time, as an ISO 8601 time with a timezone or Unix milliseconds
    
-   `--order` string
    
    asc or desc
    
-   `--include` string
    
    attachments adds each comment's files
    
-   `--attachment` string
    
    Only annotations on this media item and their replies
    
-   `--status` string
    
    open or resolved annotations
    
-   `--annotated / --plain` boolean
    
    Only annotations, or only comments that are not
    
-   `--replies-to` string
    
    Only replies to this comment
    
-   `--limit / --cursor` string
    
    Return one page, or continue from nextCursor
    

Example

Shell

```
pf comments list 3
pf c ls 3 --status open --attachment att_xyz789
pf comments list --review-status needs_changes --status open --project website
```

 `pf comments wait <postId>` Hold the request open until a comment or annotation is created on the post, then print it. Run it again with the printed since to keep listening.

Options

-   `--since` string
    
    Return comments created after this time. Default is now. Use the printed since to continue
    
-   `--timeout` number
    
    Seconds to wait, 0 to 50 (default 25)
    
-   `--attachment` string
    
    Only annotations on this media item and their replies
    
-   `--annotated` boolean
    
    Only annotations
    

Example

Shell

```
pf comments wait 3 --timeout 30 --json
```

 `pf comments resolve-all <postId>` Resolve every open annotation on one media item. The post's author or a workspace admin can run it.

Options

-   `--attachment` string required
    
    Media item whose annotations to resolve
    
-   `--confirm` boolean
    
    Skip confirmation prompt
    

Example

Shell

```
pf comments resolve-all 3 --attachment att_xyz789 --confirm
```

 `pf comments view <postId> <commentId>` Show one comment with its annotation, review status, and linked task

Example

Shell

```
pf comments view 3 comment123 --json
```

 `pf comments add <postId>` Add a comment or reply, or pin an annotation to one of the post's media items

alias: pf c add

Options

-   `--content` string
    
    Comment text; required unless --attachment is set
    
-   `--reply-to` string
    
    Parent comment ID for threading
    
-   `--attachment` string
    
    Media item to annotate
    
-   `--x / --y` number
    
    Position in percent (0-100) of the media width and height
    
-   `--time-ms / --end-time-ms` number
    
    Video, audio, Lottie, or Rive time or time range in milliseconds
    
-   `--frame / --end-frame` number
    
    0-based frame or frame range for sprites, GIFs, and 3D
    
-   `--page` number
    
    1-based page of a PDF or other document
    
-   `--review-status` string
    
    comment, needs_changes, approved, question, or suggestion
    
-   `--lines` string
    
    Line range in a text or code file, such as 12-18
    
-   `--model` string
    
    Model doing the writing, shown on what it writes. Defaults to PFEED_MODEL.
    
-   `--effort` string
    
    Reasoning effort the model is running at, shown with it. Defaults to PFEED_EFFORT.
    

Example

Shell

```
pf comments add 3 --content "Great progress!"
pf c add 3 --content "Agreed" --reply-to comment123
pf c add 3 --attachment att_xyz789 --x 42 --y 18 --content "Crop tighter"
pf c add 3 --attachment att_video456 --time-ms 12500 --review-status needs_changes --content "Audio pops"
```

 `pf comments edit <postId> <commentId>` Edit a comment, move an annotation, or change its review status

Options

-   `--expected-updated-at` number
    
    Source updatedAt in Unix milliseconds; fails if the source changed.
    
-   `--content` string
    
    New comment text
    
-   `--x / --y` number
    
    Position in percent (0-100) of the media width and height
    
-   `--time-ms / --end-time-ms` number
    
    Video, audio, Lottie, or Rive time or time range in milliseconds
    
-   `--frame / --end-frame` number
    
    0-based frame or frame range for sprites, GIFs, and 3D
    
-   `--page` number
    
    1-based page of a PDF or other document
    
-   `--review-status` string
    
    comment, needs_changes, approved, question, or suggestion
    

Example

Shell

```
pf comments edit 3 comment123 --content "Updated feedback"
pf comments edit 3 comment123 --review-status approved
pf comments edit 3 comment123 --time-ms 4000 --end-time-ms 6000
```

 `pf comments resolve <postId> <commentId>` Mark an annotation as resolved

Example

Shell

```
pf comments resolve 3 comment123
```

 `pf comments reopen <postId> <commentId>` Reopen a resolved annotation

Example

Shell

```
pf comments reopen 3 comment123
```

 `pf comments to-task <postId> <commentId>` Create a task from an annotation, or link it to an existing task

Options

-   `--title` string
    
    Title for a new task
    
-   `--task` string
    
    Link an existing task instead
    
-   `--priority / --status / --assignee / --due-date` string
    
    Fields for the new task
    

Example

Shell

```
pf comments to-task 3 comment123 --title "Fix the logo crop" --priority high
```

 `pf comments delete <postId> <commentId>` Delete a comment from a post

alias: pf c rm

Options

-   `--expected-updated-at` number
    
    Source updatedAt in Unix milliseconds; fails if the source changed.
    
-   `--confirm` boolean
    
    Skip confirmation prompt
    
-   `--dry-run` boolean
    
    Preview without deleting
    

Example

Shell

```
pf comments delete 3 comment123 --confirm
```

## Reactions

Toggle reactions on posts and comments. Alias: `pf r`

 `pf reactions list <postId>` List reaction counts on a post or one of its comments

alias: pf r ls

Options

-   `--comment` string
    
    List reactions on this comment or annotation
    
-   `--users` boolean
    
    Post reactions only: include who reacted
    

Example

Shell

```
pf reactions list 3
pf r ls 3 --comment comment123
pf reactions list 3 --users
```

 `pf reactions custom` List the workspace's custom reactions

Options

-   `--limit` number
    
    Max number of results, 1 to 200
    
-   `--cursor` string
    
    Cursor for pagination
    

Example

Shell

```
pf reactions custom
```

 `pf reactions custom-delete <id>` Delete a custom reaction. Only workspace owners and admins can delete one.

Options

-   `--confirm` boolean
    
    Skip confirmation prompt
    

Example

Shell

```
pf reactions custom-delete crx_abc123 --confirm
```

 `pf reactions toggle <postId> <emoji>` Toggle a reaction on a post or comment. Use standard emoji or custom:name format.

alias: pf r add

Options

-   `--comment` string
    
    React to this comment or annotation instead of the post
    

Example

Shell

```
pf reactions toggle 3 🚀
pf r add 3 custom:fire
pf r add 3 👍 --comment comment123
```

## Reply to comments

-   List comments first and use the exact comment ID for edits, deletes, and `--reply-to`.
-   Run `pf comments to-task` when someone needs to follow up on an annotation, and `pf comments resolve` once the feedback is addressed.
-   Use reactions for acknowledgment. The toggle command removes your reaction when the same emoji is already present.
-   Preview comment deletion with `--dry-run` and verify the post and comment IDs before confirmation.

## Fix comment problems

A comment reply starts a new thread

List comments, copy the parent comment ID, and pass it to --reply-to. A display order or truncated table row is not a stable thread identifier.

A comment delete targets the wrong comment

Stop before confirmation, view the post and comment IDs, and rerun with --dry-run.

## Next steps

-   [Comments API](https://projectfeed.app/docs/api/comments)
