# Sales Navigator

CLI commands for Sales Navigator – search, fetch, and message via InMail.

Requires a LinkedIn Sales Navigator subscription.

## navigator person fetch

Fetch a person profile via Sales Navigator.

```bash
linkedin navigator person fetch <hashed-url>
```

| Arg | Required | Description |
| --- | --- | --- |
| `hashed-url` | yes | Hashed LinkedIn profile URL |

```bash
linkedin navigator person fetch https://www.linkedin.com/in/ACwAAA...
```

## navigator person search

Search for people via Sales Navigator with advanced filters.

```bash
linkedin navigator person search [flags]
```

| Flag | Type | Description |
| --- | --- | --- |
| `--term` | string | Search keyword or phrase |
| `--limit` | integer | Max results to return |
| `--first-name` | string | Filter by first name |
| `--last-name` | string | Filter by last name |
| `--position` | string | Filter by job position |
| `--locations` | string | Comma-separated locations |
| `--industries` | string | Comma-separated industries |
| `--current-companies` | string | Comma-separated current company names |
| `--previous-companies` | string | Comma-separated previous company names |
| `--schools` | string | Comma-separated school names |
| `--years-of-experience` | string | Comma-separated experience ranges: `lessThanOne`, `oneToTwo`, `threeToFive`, `sixToTen`, `moreThanTen` |

```bash
linkedin navigator person search --term "VP Marketing" --locations "United States"
linkedin navigator person search --years-of-experience "moreThanTen" --position "CEO" --json
```

## navigator company fetch

Fetch a company profile via Sales Navigator with optional employees and decision makers.

```bash
linkedin navigator company fetch <hashed-url> [flags]
```

| Flag | Type | Description |
| --- | --- | --- |
| `--employees` | boolean | Include employee data |
| `--dms` | boolean | Include decision makers |
| `--employees-limit` | integer | Max employees to retrieve |
| `--employees-first-name` | string | Filter employees by first name |
| `--employees-last-name` | string | Filter employees by last name |
| `--employees-positions` | string | Filter employees by positions, comma-separated |
| `--employees-locations` | string | Filter employees by locations, comma-separated |
| `--employees-industries` | string | Filter employees by industries, comma-separated |
| `--employees-schools` | string | Filter employees by schools, comma-separated |
| `--employees-years-of-experience` | string | Filter employees by experience ranges, comma-separated |
| `--dms-limit` | integer | Max decision makers to retrieve |

```bash
linkedin navigator company fetch https://www.linkedin.com/sales/company/97ural --employees --dms
linkedin navigator company fetch https://www.linkedin.com/sales/company/97ural \
  --employees --employees-positions "Engineer,Designer" --employees-locations "Europe"
```

## navigator company search

Search for companies via Sales Navigator with advanced filters including revenue.

```bash
linkedin navigator company search [flags]
```

| Flag | Type | Description |
| --- | --- | --- |
| `--term` | string | Search keyword or phrase |
| `--limit` | integer | Max results to return |
| `--sizes` | string | Company sizes, comma-separated |
| `--locations` | string | Comma-separated locations |
| `--industries` | string | Comma-separated industries |
| `--revenue-min` | string | Min annual revenue in M USD: `0`, `0.5`, `1`, `2.5`, `5`, `10`, `20`, `50`, `100`, `500`, `1000` |
| `--revenue-max` | string | Max annual revenue in M USD: `0.5`, `1`, `2.5`, `5`, `10`, `20`, `50`, `100`, `500`, `1000`, `1000+` |

```bash
linkedin navigator company search --term "fintech" --sizes "11-50,51-200"
linkedin navigator company search --revenue-min 10 --revenue-max 100 --locations "United States" --json
```

## navigator message send

Send a message via Sales Navigator (InMail).

```bash
linkedin navigator message send <person-url> <text> --subject <subject>
```

| Arg | Required | Description |
| --- | --- | --- |
| `person-url` | yes | LinkedIn profile URL of the recipient |
| `text` | yes | Message text (up to 1900 characters) |

| Flag | Type | Required | Description |
| --- | --- | --- | --- |
| `--subject` | string | yes | Message subject line (up to 80 characters) |

```bash
linkedin navigator message send https://www.linkedin.com/in/vprudnikoff \
  "Would love to chat about API integrations" --subject "Partnership Opportunity"
```

## navigator message get

Get Sales Navigator conversation messages.

```bash
linkedin navigator message get <person-url> [flags]
```

| Flag | Type | Description |
| --- | --- | --- |
| `--since` | string | Only retrieve messages since this ISO timestamp |

```bash
linkedin navigator message get https://www.linkedin.com/in/vprudnikoff
linkedin navigator message get https://www.linkedin.com/in/vprudnikoff --since 2024-01-15T10:30:00Z
```

## navigator message manage

Archive or unarchive a Sales Navigator conversation thread.

```bash
linkedin navigator message manage <thread-id> <operation>
```

| Arg | Required | Description |
| --- | --- | --- |
| `thread-id` | yes | Conversation thread identifier, as returned by `inbox get --type nv` / `navigator message get`, or the `<id>` in `linkedin.com/sales/inbox/<id>` of an open conversation |
| `operation` | yes | One of `archive`, `unarchive` |

```bash
linkedin navigator message manage 2-abc123... archive
```
