Skip to content

v0.2.0 — Multi-Account Support

Choose a tag to compare

@GrigoriLab GrigoriLab released this 05 Feb 22:15
· 3 commits to main since this release
6fc7248

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 feed

New 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 credentials

Config 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:

  1. Explicit cookies (programmatic API)
  2. Environment variables
  3. Named account (--account flag → default account)
  4. Legacy flat config credentials
  5. 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

New Contributors

Full Changelog: v0.1.0...v0.2.0