# Posts

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

Create, list, inspect, edit, version, and remove project posts from the CLI.

Manage progress update posts. Alias: `pf po`

 `pf posts list` List posts, optionally filtered by project or status

alias: pf po ls

Options

-   `--project` string
    
    Filter by project ID. A linked or default project applies when omitted.
    
-   `--status` string
    
    Filter by status: draft or published (default published)
    
-   `--limit` number
    
    Max number of results
    
-   `--cursor` string
    
    Cursor for pagination
    
-   `--author` string
    
    Only posts by this user ID, or me
    
-   `--tag` string
    
    Only posts with this tag ID. Not allowed with --updated-since or --include-deleted
    
-   `--query` string
    
    Words to find in the title or text. Not allowed with --updated-since or --include-deleted
    
-   `--created-after` string
    
    Only posts created after this time, as an ISO 8601 time with a timezone or Unix milliseconds. Also --created-before, --published-after, and --published-before
    
-   `--updated-since` string
    
    Only posts changed after this time, oldest change first. To poll, use the largest updatedAt you have seen minus 5 seconds and skip posts you already have. Lists by updatedAt, so --sort can only be updatedAt
    
-   `--include-deleted` boolean
    
    Include deleted posts. Lists by updatedAt, so --sort can only be updatedAt
    
-   `--has-release` string
    
    true for posts with release details, false for posts without
    
-   `--release-type` string
    
    release, beta, or alpha
    
-   `--created-via` string
    
    web, api, slack_bot, discord_bot, github_app, ai_aggregation, inbound_webhook, or mobile
    
-   `--include` string
    
    Comma-separated extras: tags, attachments, links, counts
    
-   `--sort` string
    
    createdAt, updatedAt, or lastPublishedAt sorts every post on the server. Any other field sorts the page you fetched
    
-   `--reverse` boolean
    
    Reverse sort order
    

Example

Shell

```
pf posts list --project abc123
pf po ls --status draft --limit 5
pf posts list --author me --sort lastPublishedAt --include tags,counts
```

 `pf posts create` Create a new post. In a terminal, missing title, content, or project are prompted for. Without a terminal, the command fails when any is missing.

alias: pf po create

Options

-   `--title` string required
    
    Post title, up to 200 characters
    
-   `--content` string required
    
    Post content, plain text unless --format says otherwise
    
-   `--format` string
    
    plaintext, markdown, or platejs (default plaintext). In Markdown, ![caption](upload:0) shows the first --file inline and ![caption](media:<media-id>) shows a file that is already uploaded
    
-   `--project` string required
    
    Project ID to post in. Not needed when a linked or default project is set.
    
-   `--status` string
    
    Initial status: draft or published (default draft)
    
-   `--publish` boolean
    
    Publish immediately
    
-   `--release-version` string
    
    Release version, free text up to 40 characters. Needs --release-type
    
-   `--release-type` string
    
    release, beta, or alpha
    
-   `--release-compat` string
    
    Compatibility note, up to 120 characters
    
-   `--download-url` string
    
    https download link
    
-   `--download-label` string
    
    Download button label, up to 40 characters. Needs --download-url
    
-   `--idempotency-key` string
    
    Reuse when retrying so only one post is created
    
-   `--file` string
    
    Attach a file. Repeat for up to 10 files. They upload before the post is created, so it appears with all of them
    
-   `--sprite-data` string
    
    <file>=<json>: upload that PNG as a sprite. The JSON is Aseprite's export (Sheet type By rows or a strip, untrimmed) or a spriteSheetData object. Repeat for more sprites.
    
-   `--before` string
    
    Before image or GIF of a before/after pair, shown as one image with a divider to drag. Repeat for more pairs; each matches the --after in the same position
    
-   `--after` string
    
    After image or GIF of a before/after pair
    
-   `--before-label` string
    
    Label for a pair's before side, up to 40 characters (default Before). Repeat in pair order
    
-   `--after-label` string
    
    Label for a pair's after side, up to 40 characters (default After). Repeat in pair order
    

Example

Shell

```
pf posts create --title "Sprint Update" --content "The canal gate is ready for review." --project abc123 --publish
pf posts create --title "Release notes" --content "What changed." --project abc123 --release-version 2.4.0 --release-type beta --download-url https://example.com/app.dmg
pf posts create --title "New screenshots" --content "Two captures from today." --project abc123 --publish --file day.png --file night.png
pf posts create --title "Walk cycle" --content "First pass." --project abc123 --file walk.png --sprite-data walk.png=walk.json
pf posts create --title "Login fix" --format markdown --content $'Fixed the overflow.\n\n![After the fix](upload:0)' --project abc123 --file after.png
pf posts create --title "Lighting pass" --content "Night lighting is in." --project abc123 --publish --before day.png --after night.png --before-label Day --after-label Night
```

 `pf posts view [id]` View post details. Accepts a post number or full ID.

alias: pf po show

Options

-   `--include` string
    
    Comma-separated extras: tags, attachments, providerFiles, counts, viewer
    

Example

Shell

```
pf posts view 3 --include tags,counts
pf po show    # interactive picker
```

 `pf posts edit [id]` Update a post

alias: pf po update

Options

-   `--title` string
    
    New title
    
-   `--content` string
    
    New content
    
-   `--format` string
    
    plaintext, markdown, or platejs (default plaintext). In Markdown, ![caption](media:<media-id>) shows a file inline
    
-   `--status` string
    
    New status
    
-   `--move-to-project` string
    
    Move post to a different project
    
-   `--release-version` string
    
    Release version, free text up to 40 characters. Replaces all release details, so pass --release-type too
    
-   `--release-type` string
    
    release, beta, or alpha
    
-   `--release-compat` string
    
    Compatibility note, up to 120 characters
    
-   `--download-url` string
    
    https download link
    
-   `--download-label` string
    
    Download button label, up to 40 characters. Needs --download-url
    
-   `--clear-release` boolean
    
    Remove the post's release details
    

Example

Shell

```
pf posts edit 3 --title "Updated Sprint Recap"
pf posts edit 3 --release-version 2.4.1 --release-type release
pf posts edit 3 --clear-release
```

 `pf posts restore <id>` Restore a deleted post along with the comments deleted with it. Accepts a post number or full ID.

Example

Shell

```
pf posts restore 3
```

 `pf posts share-links list [post]` List a post's share links. Without a post, workspace owners and admins list every share link in the workspace. The list never shows link URLs or tokens.

alias: pf po shares ls

Options

-   `--status` string
    
    active, expired, or revoked. Workspace list only
    
-   `--limit` number
    
    Max number of results
    
-   `--cursor` string
    
    Cursor for pagination
    

Example

Shell

```
pf posts share-links list 3
pf posts share-links list --status active
```

 `pf posts share-links create <post>` Create a public share link for a published post you wrote. Prints the link URL once; no other command or request returns it.

Options

-   `--label` string
    
    Label, up to 100 characters
    
-   `--expires-in-days` number
    
    Days until the link expires, from 1 to 365
    
-   `--no-expiry` boolean
    
    Create a link that never expires, if the workspace allows it
    
-   `--allow-comments` boolean
    
    Let visitors comment
    
-   `--allow-downloads` boolean
    
    Let visitors download files
    
-   `--idempotency-key` string
    
    Reuse when retrying so only one link is created
    

Example

Shell

```
pf posts share-links create 3 --label "Client review" --expires-in-days 14 --allow-comments
```

 `pf posts share-links revoke <post> <link>` Revoke a share link so its URL stops working

Options

-   `--confirm` boolean
    
    Skip confirmation prompt
    

Example

Shell

```
pf posts share-links revoke 3 shr_abc123 --confirm
```

 `pf posts provider-files remove <post> <provider> <externalId>` Remove a Figma or Google Drive file from a post. Only the post author can. Take the provider and externalId from the post's providerFiles.

Options

-   `--confirm` boolean
    
    Skip confirmation prompt
    

Example

Shell

```
pf posts provider-files remove 3 figma 4XyZabc123 --confirm
```

 `pf posts activity <id>` Show what happened to a post, newest first. Comments are not included.

Options

-   `--limit` number
    
    Max number of events, 1 to 100 (default 50)
    
-   `--cursor` string
    
    Cursor for pagination
    

Example

Shell

```
pf posts activity 3
```

 `pf posts bookmarks` List the posts you bookmarked, newest bookmark first

Options

-   `--limit` number
    
    Max number of bookmarks, 1 to 100 (default 50)
    
-   `--cursor` string
    
    Cursor for pagination
    

Example

Shell

```
pf posts bookmarks
```

 `pf posts bookmark <id>` Bookmark a post for yourself. Works for every role.

Options

-   `--remove` boolean
    
    Remove the bookmark instead
    

Example

Shell

```
pf posts bookmark 3
pf posts bookmark 3 --remove
```

 `pf posts delete [id]` Delete a post

alias: pf po rm

Options

-   `--confirm` boolean
    
    Skip confirmation prompt
    
-   `--dry-run` boolean
    
    Preview without deleting
    

Example

Shell

```
pf posts delete 3 --confirm
```

 `pf posts publish [id]` Publish a draft post so it appears in the project feed

Example

Shell

```
pf posts publish 3
```

 `pf posts unpublish [id]` Revert a published post back to draft

Example

Shell

```
pf posts unpublish 3
```

 `pf posts follow <id>` Follow a post to be notified about its activity, or mute it to stop those notifications

Options

-   `--mute` boolean
    
    Mute the post instead of following it
    

Example

Shell

```
pf posts follow 3
pf posts follow 3 --mute
```

 `pf posts portals <id>` List the active portals sharing a post, newest portal first, with shared and current versions and the guest link per portal. Any workspace member who can read the post can use this command. Needs posts:read. A guest link that visitors can't open is null in JSON output.

Example

Shell

```
pf posts portals PRO-12
pf posts portals PRO-12 --json
```

 `pf posts tasks <id>` List the tasks linked to a post, newest link first. A page can hold fewer tasks than the limit when some are in projects you cannot open. Needs the posts:read and tasks:read scopes

Options

-   `--limit` number
    
    Tasks per page, 1 to 100 (default 50)
    
-   `--cursor` string
    
    Continue from a previous page
    
-   `--page` boolean
    
    With --json, return the page metadata (hasMore, nextCursor) along with the tasks
    

Example

Shell

```
pf posts tasks 3
pf posts tasks 3 --json --page --cursor '<nextCursor>'
```

 `pf posts link-attachments <post>` List the web links attached to a post, with each link's ID, status, and page title

Example

Shell

```
pf posts link-attachments 3
```

 `pf posts attach-link <post> <url>` Attach a web link to a post. Only http and https links work, a post holds up to 20, and attaching a link that is already there changes nothing. Only the post's author can add or remove links

Options

-   `--idempotency-key` string
    
    Retry-safe request key. Running the command again with the same key returns the first result
    

Example

Shell

```
pf posts attach-link 3 https://example.com/spec
```

 `pf posts detach-link <post> <linkId>` Remove a web link from a post. Find the link ID with pf posts link-attachments

Example

Shell

```
pf posts detach-link 3 <link-id>
```

## Post versions

Publish a new version when the work changes, so reviewers can compare it with earlier ones. Only the post author can publish. Files passed with `--file` upload into the new version only. Files passed with `--replace` take the place of a current file, and reviewers can compare them with the file they replace. Earlier versions keep their media. Alias: `pf po ver`

 `pf posts versions list <post>` List a post's versions, newest first

alias: pf po ver ls

Options

-   `--limit` number
    
    Max number of results (max 50, default 20)
    
-   `--cursor` number
    
    Cursor for pagination
    

Example

Shell

```
pf posts versions list 3
```

 `pf posts versions view <post> <version>` View one version by number or ID, with its media

alias: pf po ver show

Example

Shell

```
pf posts versions view 3 v2
```

 `pf posts versions publish <post>` Publish a new version of a post you wrote. Title, content, and media carry over unless you change them.

Options

-   `--expected-updated-at` number
    
    Source updatedAt in Unix milliseconds; fails if the source changed.
    
-   `--title` string
    
    New title
    
-   `--content` string
    
    New content
    
-   `--format` string
    
    plaintext, markdown, or platejs (default plaintext). In Markdown, ![caption](upload:0) shows the first --file inline and ![caption](media:<media-id>) shows a file that is already uploaded
    
-   `--note` string
    
    What changed (max 500 chars)
    
-   `--file` string
    
    Upload a file into the new version. Repeat for more files.
    
-   `--sprite-data` string
    
    <file>=<json>: upload that PNG as a sprite. The JSON is Aseprite's export (Sheet type By rows or a strip, untrimmed) or a spriteSheetData object. Repeat for more sprites.
    
-   `--replace` string
    
    Replace a current file with an upload that takes its position. Repeat for more. Do not also pass the media ID to --media-id.
    
-   `--media-id` string
    
    Keep this current media, in order. Repeat for more; unlisted media is dropped.
    
-   `--drop-media` boolean
    
    Start the new version without the current media
    
-   `--idempotency-key` string
    
    Reuse when retrying so only one version is created
    

Example

Shell

```
pf posts versions publish 3 --file hero-v2.png --note "Recolored the hero"
pf posts versions publish 3 --replace <media-id>=hero-v2.png --note "Recolored the hero"
pf posts versions publish 3 --replace <media-id>=walk.png --sprite-data walk.png=walk.json --note "Smoother walk"
pf posts versions publish 3 --media-id <media-id> --note "Dropped the old render"
```

## Create and verify a post

1.  1.
    
    ### Create a draft
    
    Resolve the project and create the post as a draft. In automation, pass title, content, project, and status explicitly.
    
2.  2.
    
    ### Check it
    
    View the returned post ID and verify the title, project, author, and draft status before attaching files or adding links. Drafts are not listed in the project feed. pf posts create and pf posts view print a link that opens the draft in Project Feed, where only you can see it.
    
3.  3.
    
    ### Upload files
    
    Upload each file with exactly one parent flag. List the post's media and confirm the returned file names and parent IDs.
    
4.  4.
    
    ### Publish and view again
    
    Publishing can notify and expose the post to its project audience, so a successful command is not the final verification.
    

Shell

```
pf posts create --project <project-id> --title "Sprint review" --content "Review notes are attached below." --status draft --json
pf posts view <post-id> --json
pf media upload review.pdf --post <post-id>
pf media list --post <post-id> --json
pf posts publish <post-id>
pf posts view <post-id> --json
```

## Fix post problems

A post number resolves incorrectly

Pass the project explicitly or use the full post ID. A short post number needs the intended project context when it is not globally unique.

A published post should not be visible

Run pf posts unpublish by exact ID, then view the record and confirm draft status. Check separately published portal versions and share links.

A destructive command targets the wrong content

Stop before confirmation, view the full resource ID, and rerun with --dry-run. Do not depend on an interactive picker in scripts.

## Next steps

-   [Create and manage posts in the product](https://projectfeed.app/docs/posts/create)
-   [Posts API](https://projectfeed.app/docs/api/posts)
