name: linkedin-cli
description: Use the linkedin-cli repository to operate LinkedIn from the terminal. Trigger on requests to inspect the LinkedIn feed, search people or posts, fetch a profile, fetch profile posts, inspect an activity, export LinkedIn data as JSON, run linkedin commands, or decide which linkedin-cli command to use. Also use when the user mentions this repo or the linkedin CLI directly.
linkedin-cli
Use this skill for read-heavy and command-selection workflows with the public linkedin-cli repo.
Runtime Entry Points
Prefer the first working option:
uv run linkedin ...
linkedin ...
.venv/bin/linkedin ...
Run commands from the repository root when using uv run or .venv/bin/linkedin.
Standard Workflow
- Verify the session first with
uv run linkedin auth-status. - Choose the narrowest read command that answers the request.
- Prefer
--jsonwhen another tool or script will consume the output. - Prefer
--output <file>forfeed,search, andprofile-postswhen the user wants an artifact on disk. - Switch to
$linkedin-cli-authwhen the problem is mainly auth, cookies, browser extraction, proxying, or redirects. - Switch to
$linkedin-cli-writewhen the task is mainly posting, reacting, saving, unsaving, or commenting.
Command Selection
| Need | Command |
|---|---|
| Verify session and probes | uv run linkedin auth-status |
| Read home feed | uv run linkedin feed --max 10 |
| Search people and posts | uv run linkedin search "AI engineer" --max 10 |
| Fetch one profile | uv run linkedin profile lebrero-juan-francisco |
| Fetch recent posts from a profile | uv run linkedin profile-posts lebrero-juan-francisco --max 10 |
| Inspect one activity | uv run linkedin activity urn:li:activity:123 --json |
Identifier Rules
- Pass a profile public identifier like
satyanadellaor a full LinkedIn profile URL toprofileandprofile-posts. - Pass a full activity URN, a numeric activity id, or a LinkedIn activity URL to
activityand write-side commands. - Normalize to
--jsonbefore downstream processing when the request involves filtering, summarizing, or saving structured output.
Read Next
- Read command-cookbook.md for exact command patterns, JSON usage, and realistic examples.
- Use
$linkedin-cli-authfor session recovery and runtime troubleshooting. - Use
$linkedin-cli-writefor authenticated mutations and browser fallback behavior.