Skip to content

LinkedIn CLI examples

openquok CLI recipes for LinkedIn and LinkedIn Page

1 min read

Connect your agent today

Draft from chat, review in your calendar, and publish only what you approve.

Start for $0

List channels

openquok integrations:list

Filter by provider:

openquok integrations:list --provider linkedin
openquok integrations:list --provider linkedin-page

Schedule a text post

openquok posts:create 
  -i "<integration-id>" 
  -c "Shipping a small update on what we learned this week." 
  -t schedule 
  -s "2026-06-20T14:00:00.000Z"
openquok posts:create 
  -i "<integration-id>" 
  -c "Our Q2 product slides — swipe through the deck." 
  -t schedule 
  -s "2026-06-22T10:00:00.000Z" 
  -j '{"providerSettingsByIntegrationId":{"<integration-id>":{"linkedin":{"postAsImagesCarousel":true,"carouselName":"Q2 update"}}}}'

Scheduled follow-up comments

providerSettings.linkedin.replies[] carries follow-up comments that are published on the main post after a fixed delay. Use the linkedin bucket for both personal and Page integrations (linkedin-page maps to the same bucket). Pass them on posts:create with --providerSettingsByIntegrationId:
openquok posts:create 
  -i "<integration-id>" 
  -c "Main post — details in the first comment." 
  -t schedule 
  -s "2026-06-20T14:00:00.000Z" 
  --providerSettingsByIntegrationId "$(jq -nc --arg id "<integration-id>" '
    {
      ($id): {
        linkedin: {
          replies: [
            { message: "Follow-up comment on the post", delaySeconds: 60 },
            { message: "Second comment with extra context", delaySeconds: 120 }
          ]
        }
      }
    }
  ')"

Analytics (Page)

openquok analytics:platform -i "<integration-id>" -d 30
openquok analytics:post -i "<integration-id>" -p "<post-id>" -d 7
Search documentation
Find a docs page
Discord Support