Posts

post fetch

Fetch a LinkedIn post with optional comments and reactions.

bash
linkedin post fetch <url> [flags]
FlagTypeDescription
--commentsbooleanInclude comments
--reactionsbooleanInclude reactions
--comments-limitintegerMax comments to retrieve
--comments-sortstringSort order: mostRelevant or mostRecent
--comments-repliesbooleanInclude replies to comments
--reactions-limitintegerMax reactions to retrieve
bash
linkedin post fetch https://www.linkedin.com/posts/vprudnikoff_activity-123

# With comments sorted by most recent, including replies
linkedin post fetch https://www.linkedin.com/posts/vprudnikoff_activity-123 \
  --comments --comments-sort mostRecent --comments-replies --json

# With reactions
linkedin post fetch https://www.linkedin.com/posts/vprudnikoff_activity-123 \
  --comments --reactions --json

post create

Create a LinkedIn post with optional media attachments.

bash
linkedin post create <text> [flags]
ArgRequiredDescription
textyesPost text (up to 3000 characters)
FlagTypeDescription
--company-urlstringPost on behalf of a company page (requires admin access)
--attachmentsstringAttachments as url:type or url:type:name. Types: image, video, document. Can be specified multiple times.

Attachment limits: up to 9 images, or 1 video, or 1 document. Cannot mix types.

bash
linkedin post create "Excited to share our latest update!"

# With an image
linkedin post create "Check this out" \
  --attachments "https://example.com/photo.jpg:image"

# With a document
linkedin post create "Our Q4 report" \
  --attachments "https://example.com/report.pdf:document:Q4 Report"

# Post as a company
linkedin post create "Company announcement" \
  --company-url https://www.linkedin.com/company/flutterwtf

post react

React to a LinkedIn post.

bash
linkedin post react <url> --type <reaction> [flags]
FlagTypeRequiredDescription
--typestringyesReaction type: like, love, support, celebrate, insightful, funny
--company-urlstringnoReact on behalf of a company page
bash
linkedin post react https://www.linkedin.com/posts/vprudnikoff_activity-123 --type like
linkedin post react https://www.linkedin.com/posts/vprudnikoff_activity-123 --type celebrate \
  --company-url https://www.linkedin.com/company/flutterwtf

post comment

Comment on a LinkedIn post.

bash
linkedin post comment <url> <text> [flags]
ArgRequiredDescription
urlyesLinkedIn post URL
textyesComment text (up to 1000 characters)
FlagTypeDescription
--company-urlstringComment on behalf of a company page
bash
linkedin post comment https://www.linkedin.com/posts/vprudnikoff_activity-123 "Great insights!"
linkedin post comment https://www.linkedin.com/posts/vprudnikoff_activity-123 "Well said!" \
  --company-url https://www.linkedin.com/company/flutterwtf