Posts
post fetch
Fetch a LinkedIn post with optional comments and reactions.
bash
linkedin post fetch <url> [flags]| Flag | Type | Description |
|---|---|---|
--comments | boolean | Include comments |
--reactions | boolean | Include reactions |
--comments-limit | integer | Max comments to retrieve |
--comments-sort | string | Sort order: mostRelevant or mostRecent |
--comments-replies | boolean | Include replies to comments |
--reactions-limit | integer | Max 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 --jsonpost create
Create a LinkedIn post with optional media attachments.
bash
linkedin post create <text> [flags]| Arg | Required | Description |
|---|---|---|
text | yes | Post text (up to 3000 characters) |
| Flag | Type | Description |
|---|---|---|
--company-url | string | Post on behalf of a company page (requires admin access) |
--attachments | string | Attachments 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/flutterwtfpost react
React to a LinkedIn post.
bash
linkedin post react <url> --type <reaction> [flags]| Flag | Type | Required | Description |
|---|---|---|---|
--type | string | yes | Reaction type: like, love, support, celebrate, insightful, funny |
--company-url | string | no | React 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/flutterwtfpost comment
Comment on a LinkedIn post.
bash
linkedin post comment <url> <text> [flags]| Arg | Required | Description |
|---|---|---|
url | yes | LinkedIn post URL |
text | yes | Comment text (up to 1000 characters) |
| Flag | Type | Description |
|---|---|---|
--company-url | string | Comment 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