Skip to content

Notifications

List notifications and update their read state from the CLI.

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

pf notifications listList notifications

alias: pf n ls

Options

  • --unreadboolean

    Show only unread notifications

  • --sincestring

    Only notifications created at or after this time. Unix milliseconds, a YYYY-MM-DD date, or an ISO timestamp with a timezone.

  • --typestring

    Only these notification types, comma-separated, up to 16

  • --in-projectstring

    Only notifications about this project, by ID or slug

  • --limitnumber

    Max number of results

  • --offsetnumber

    Pagination offset

  • --cursorstring

    Continue from nextCursor, including after an empty page

  • --pageboolean

    Include nextCursor and hasMore with --json

  • --sortstring

    Sort by field

  • --reverseboolean

    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 summaryCount your unread notifications by type

Example

Shell
pf notifications summary --json
pf notifications projectsList the projects you watch or mute. Projects at the default level are not listed.

Options

  • --limitnumber

    Max results per page

  • --cursorstring

    Continue from nextCursor

Example

Shell
pf notifications projects --limit 20
pf notifications unread-countShow 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

  • --poststring

    Mark every unread notification about this post instead of listing IDs

  • --unreadboolean

    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-readDelete all read notifications

Options

  • --confirmboolean

    Skip confirmation prompt

  • --dry-runboolean

    Preview without making changes

Example

Shell
pf notifications delete-read --confirm
pf notifications delete-oldDelete notifications, read or unread, older than a number of days

Options

  • --daysnumberrequired

    Delete notifications older than this many days

  • --confirmboolean

    Skip confirmation prompt

  • --dry-runboolean

    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-readMark all notifications as read

Options

  • --confirmboolean

    Skip confirmation prompt

  • --dry-runboolean

    Preview without making changes

Example

Shell
pf notifications mark-all-read --confirm
pf notifications preferencesView or update notification preferences

alias: pf n prefs

Options

  • --resetboolean

    Remove workspace overrides and use account defaults; cannot combine with channel options

  • --emailstring

    Set email notifications: on or off

  • --pushstring

    Set push notifications: on or off

  • --in-appstring

    Set in-app notifications: on or off

  • --expected-updated-atnumber

    Fail with 412 if the preferences changed since this updatedAt

Example

Shell
pf notifications preferences
pf n prefs --email off --push on

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

Image preview
100%