# CLI Platform Commands

Inspect connected accounts and discover platform-specific ids (Instagram locations,
licensed audio, Pinterest boards) that other commands take as input.

## Accounts

| Command | Description |
|---------|-------------|
| `accounts:list` | List connected accounts with channel ids, platforms, supported content types, and Pinterest boards |
| `accounts:get <id>` | Full details for one account, including platform-specific data such as Pinterest board ids |

```bash
omnisocials accounts:list
```

The channel ids in the output are what `posts:create --channels` expects.

## Location search

| Command | Description |
|---------|-------------|
| `locations:search "<name>"` | Search Facebook Places for taggable locations (minimum 2 characters, `--q` or positional) |

Returns `location_id` values for `posts:create --location-id` (Instagram place
tags). Only places with a street address can be tagged.

```bash
omnisocials locations:search "Amsterdam Central"
omnisocials posts:create \
  --text "Live from Amsterdam" \
  --channels instagram \
  --media-urls https://example.com/photo.jpg \
  --location-id 106039436102339
```

## Audio search

| Command | Description |
|---------|-------------|
| `audio:search ["<song/artist>"]` | Search Meta's licensed music catalog for Instagram Reels. Empty query returns trending audio. Flags: `--type <music\|original_sound>` |

Returns `audio_id` values for `posts:create --instagram-audio-id` (reels only).

```bash
# Trending right now
omnisocials audio:search

# Find a specific track
omnisocials audio:search "daft punk" --type music
```
