Repository navigation
v0.2.0 — Multi-Account Support
What's New
Multi-Account Support
Manage multiple LinkedIn accounts and switch between them seamlessly.
New global flag:
linked --account personal whoami
linked -a work feedNew account command:
linked account add personal --li-at <token> --jsessionid <token>
linked account add work --li-at <token> --jsessionid <token> --default
linked account list
linked account default personal
linked account remove work
linked account migrate # migrate legacy flat config to named account
linked account whoami # verify active account credentialsConfig format (backward compatible):
{
// Legacy flat fields still work
li_at: "...", jsessionid: "...",
// New multi-account
accounts: {
personal: { li_at: "...", jsessionid: "...", cookieSource: "safari" },
company: { li_at: "...", jsessionid: "..." }
},
defaultAccount: "personal"
}Credential resolution priority:
- Explicit cookies (programmatic API)
- Environment variables
- Named account (
--accountflag → default account) - Legacy flat config credentials
- Browser cookie extraction
Highlights
- Zero changes required to existing commands — account selection is transparent
- Full backward compatibility with existing single-account configurations
- Account name validation (alphanumeric, hyphens, underscores)
- Helpful error messages when account not found (lists available accounts)
- 27 new unit tests covering all account functionality
What's Changed
- Add multi-account support by @GrigoriLab in #1
New Contributors
- @GrigoriLab made their first contribution in #1
Full Changelog: v0.1.0...v0.2.0