# Company

Fetch LinkedIn company profiles and search for companies with advanced filtering.

## company fetch

Fetch a LinkedIn company profile with optional employees, decision makers, and posts.

```bash
linkedin company fetch <url> [flags]
```

| Arg | Required | Description |
| --- | --- | --- |
| `url` | yes | LinkedIn company URL |

| Flag | Type | Description |
| --- | --- | --- |
| `--employees` | boolean | Include employee data |
| `--dms` | boolean | Include decision makers |
| `--posts` | boolean | Include company posts |
| `--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-position` | string | Filter employees by position |
| `--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 |
| `--dms-limit` | integer | Max decision makers to retrieve |
| `--posts-limit` | integer | Max posts to retrieve |
| `--posts-since` | string | Posts since ISO timestamp |

```bash
# Basic company info
linkedin company fetch https://www.linkedin.com/company/flutterwtf

# Company with employees and decision makers
linkedin company fetch https://www.linkedin.com/company/flutterwtf --employees --dms --json

# Filter employees by position and location
linkedin company fetch https://www.linkedin.com/company/flutterwtf \
  --employees --employees-position "Engineer" --employees-locations "United States"

# Company posts from last month
linkedin company fetch https://www.linkedin.com/company/flutterwtf \
  --posts --posts-since 2024-12-01T00:00:00Z --json
```

## company search

Search for companies on LinkedIn with filters.

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

| Flag | Type | Description |
| --- | --- | --- |
| `--term` | string | Search keyword or phrase |
| `--limit` | integer | Max results to return |
| `--sizes` | string | Company sizes, comma-separated (`1-10`, `11-50`, `51-200`, `201-500`, `501-1000`, `1001-5000`, `5001-10000`, `10001+`) |
| `--locations` | string | Comma-separated locations |
| `--industries` | string | Comma-separated industries |

```bash
linkedin company search --term "fintech" --sizes "11-50,51-200" --json
linkedin company search --industries "Software Development" --locations "Berlin" --json
```
