# Notifications

Source: https://projectfeed.app/docs/cli/notifications-workspace/notifications

List notifications and update their read state from the CLI.

List, read, and manage notifications. Alias: `pf n`

 `pf notifications list` List notifications

alias: pf n ls

Options

-   `--unread` boolean
    
    Show only unread notifications
    
-   `--since` string
    
    Only notifications created at or after this time. Unix milliseconds, a YYYY-MM-DD date, or an ISO timestamp with a timezone.
    
-   `--type` string
    
    Only these notification types, comma-separated, up to 16
    
-   `--in-project` string
    
    Only notifications about this project, by ID or slug
    
-   `--limit` number
    
    Max number of results
    
-   `--offset` number
    
    Pagination offset
    
-   `--cursor` string
    
    Continue from nextCursor, including after an empty page
    
-   `--page` boolean
    
    Include nextCursor and hasMore with --json
    
-   `--sort` string
    
    Sort by field
    
-   `--reverse` boolean
    
    Reverse sort order
    

Example

Shell

```
pf notifications list --unread
pf n ls --limit 10
pf notifications list --since 2026-10-01T09:00:00Z
```

 `pf notifications summary` Count your unread notifications by type

Example

Shell

```
pf notifications summary --json
```

 `pf notifications projects` List the projects you watch or mute. Projects at the default level are not listed.

Options

-   `--limit` number
    
    Max results per page
    
-   `--cursor` string
    
    Continue from nextCursor
    

Example

Shell

```
pf notifications projects --limit 20
```

 `pf notifications unread-count` Show the number of unread notifications

Example

Shell

```
pf notifications unread-count
```

 `pf notifications mark-read [ids...]` Mark up to 100 notifications as read, or every unread notification about one post

Options

-   `--post` string
    
    Mark every unread notification about this post instead of listing IDs
    
-   `--unread` boolean
    
    Mark one notification as unread instead
    

Example

Shell

```
pf notifications mark-read notif123
pf notifications mark-read notif123 notif456
pf notifications mark-read notif123 --unread
pf notifications mark-read --post 3
```

 `pf notifications delete <id>` Delete a notification

Example

Shell

```
pf notifications delete notif123
```

 `pf notifications delete-read` Delete all read notifications

Options

-   `--confirm` boolean
    
    Skip confirmation prompt
    
-   `--dry-run` boolean
    
    Preview without making changes
    

Example

Shell

```
pf notifications delete-read --confirm
```

 `pf notifications delete-old` Delete notifications, read or unread, older than a number of days

Options

-   `--days` number required
    
    Delete notifications older than this many days
    
-   `--confirm` boolean
    
    Skip confirmation prompt
    
-   `--dry-run` boolean
    
    Preview without making changes
    

Example

Shell

```
pf notifications delete-old --days 30 --confirm
```

 `pf notifications project-level <project-id> <level>` Set a project's notification level: watching, muted, or default to follow your preferences

Example

Shell

```
pf notifications project-level proj123 muted
pf notifications project-level proj123 default
```

 `pf notifications mark-all-read` Mark all notifications as read

Options

-   `--confirm` boolean
    
    Skip confirmation prompt
    
-   `--dry-run` boolean
    
    Preview without making changes
    

Example

Shell

```
pf notifications mark-all-read --confirm
```

 `pf notifications preferences` View or update workspace preferences, or account defaults with a personal token

alias: pf n prefs

Options

-   `--account` boolean
    
    Read or change your account defaults; cannot combine with --reset
    
-   `--set` string
    
    JSON object of individual fields to change, such as pushMention, emailDigest, quietHoursTimezone or chatPlatformPreference
    
-   `--reset` boolean
    
    Remove workspace overrides and use account defaults; cannot combine with channel options
    
-   `--email` string
    
    Set email notifications: on or off
    
-   `--push` string
    
    Set push notifications: on or off
    
-   `--in-app` string
    
    Set in-app notifications: on or off
    
-   `--expected-updated-at` number
    
    Fail with 412 if the preferences changed since this updatedAt
    

Example

Shell

```
pf notifications preferences
pf n prefs --email off --push on
pf notifications preferences --set '{"pushMention":false,"chatDigest":"weekly"}'
pf notifications preferences --account --set '{"globalMute":true}'
```

## Process notifications safely

1.  1.
    
    ### List unread notifications
    
    Use `--json --page` and continue through results with `--cursor`.
    
2.  2.
    
    ### Keep the notification ID
    
    Preserve it before opening its target or applying an automated action.
    
3.  3.
    
    ### Mark it read when the work is accepted
    
    Use `--unread` to return it to the queue.
    
4.  4.
    
    ### Preview bulk changes
    
    Preview `mark-all-read` with `--dry-run` before using it in an unattended command.
    

The preferences command changes every event-category flag in the selected channel group. Read the current preferences first when a job should preserve category-specific choices.

## Fix notification problems

Pagination repeats or skips notifications

Keep the same filters and pass nextCursor with --cursor while hasMore is true, including after an empty page. Use --json --page to include this pagination metadata. Ordinary --json output remains an array.

## Next steps

-   [Configure notification delivery](https://projectfeed.app/docs/notifications/preferences)
