# Platform commands

Choose platform-specific commands for WhatsApp templates, Discord channels, Instagram stories, and Google Business Profile attributes.

Use platform-specific groups for features without a shared equivalent. Use [posting commands](/cli/posting) for ordinary cross-platform publication. [Authenticate](/cli/authentication) and discover the connected account first.

## First command

Set `ACCOUNT_ID` to a WhatsApp account from `zernio accounts:list`, then read its templates:

```bash
zernio whatsapp:get-whats-app-templates --accountId "$ACCOUNT_ID" --pretty
```

The response includes template names, languages, and approval statuses. Verify these before selecting a template for a message; listing templates does not send one.

## Commands

Each example below reads remote state. Select an account for that platform rather than reusing one account ID across platforms.

| Task | Command | Required input and result |
|---|---|---|
| Read WhatsApp templates | `zernio whatsapp:get-whats-app-templates --accountId "$ACCOUNT_ID"` | WhatsApp connected-account ID; templates |
| Read Discord channels | `zernio discord:get-channels "$ACCOUNT_ID"` | Discord connected-account ID; channels |
| Read active Instagram stories | `zernio instagram:list-stories "$ACCOUNT_ID"` | Instagram connected-account ID; stories |
| Read Business Profile attributes | `zernio gmbattributes:get-google-business-attributes "$ACCOUNT_ID"` | Business Profile connected-account ID; attributes |
| Start platform authorization | `zernio connect:get-url instagram --profileId "$PROFILE_ID"` | Profile ID; authorization URL |

The templates command registers `--accountId`, not the API's optional template filters. Do not assume every reference query field has a CLI flag.

## Find other platform commands

Run `zernio --help`, locate the relevant group, and ask the exact subcommand for help.

| Platform task | Groups | Behavior reference |
|---|---|---|
| WhatsApp messaging tools | `whatsapp:`, `whatsapptemplates:`, `whatsappflows:` | [WhatsApp](/platforms/whatsapp) |
| WhatsApp calling and numbers | `whatsappcalling:`, `whatsappphonenumbers:`, `whatsappsandbox:` | [WhatsApp](/platforms/whatsapp) |
| Business Profile management | `gmbattributes:`, `gmblocationdetails:`, `gmbmedia:`, `gmbservices:`, `gmbverifications:` | [Google Business Profile](/platforms/google-business) |
| Discord server actions | `discord:` | [Discord](/platforms/discord) |
| X engagement | `twitterengagement:` | [X](/platforms/twitter) |

Sending a template, modifying a location, changing roles, or interacting with another post is a write. Confirm the exact target and platform permissions before proceeding.

## How it behaves

- Account position varies: WhatsApp templates use `--accountId`; the Discord, Instagram, and Business Profile examples take it positionally.
- Connected-account IDs belong to Zernio. Guild, channel, template, and other resource identifiers can belong to the platform. Discover them from the corresponding response.
- In CLI flags that take platform values, X uses `twitter`; Google Business Profile uses `googlebusiness`.
- Support, permissions, and availability differ by platform. Follow the linked platform guide and inspect errors rather than assuming API parity.

## Related

- [Posting commands](/cli/posting)
- [WhatsApp](/platforms/whatsapp)
- [Google Business Profile](/platforms/google-business)
- [Discord](/platforms/discord)
- [X](/platforms/twitter)