> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hookmyapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI

> Manage SaaS Mode customers, onboarding links, and customer channels from the terminal.

## Customers

```bash theme={null}
# List customers in your organization
hookmyapp customers list

# Create a customer before they connect a channel
hookmyapp customers new "Acme Corp"

# Attach your own customer ID
hookmyapp customers new "Acme Corp" --external-id crm-123

# Make a customer active for channel commands
hookmyapp customers use "Acme Corp"

# Show the active customer
hookmyapp customers current
```

## Onboarding links

Give your customer a link so they can connect WhatsApp or Instagram.

```bash theme={null}
# Create an open WhatsApp connect link
hookmyapp customers onboarding-links create --label "Acme" --channel-type whatsapp

# Create an open Instagram connect link
hookmyapp customers onboarding-links create --label "Acme Instagram" --channel-type instagram

# Send the connected channel into an existing customer
hookmyapp customers onboarding-links create \
  --label "Acme" \
  --channel-type whatsapp \
  --customer ws_XXXXXXXX

# List connect links
hookmyapp customers onboarding-links list
```

## Customer channels

After you run `customers use`, normal channel commands run against that customer.

```bash theme={null}
# Pick the customer first
hookmyapp customers use "Acme Corp"

# List Acme's channels
hookmyapp channels list

# Show a customer channel
hookmyapp channels show ch_AAAAAAAA

# Get the token for sending through that customer channel
hookmyapp channels token ch_AAAAAAAA

# Set the customer channel webhook
hookmyapp channels webhook set ch_AAAAAAAA --url https://app.example.com/webhooks/hookmyapp

# Inspect customer delivery logs
hookmyapp channels logs list ch_AAAAAAAA
```

You can also run one command against a customer without switching:

```bash theme={null}
hookmyapp --workspace ws_XXXXXXXX channels list
```

## Send messages

Use the customer channel with the WhatsApp command group.

```bash theme={null}
# WhatsApp customer channel
hookmyapp whatsapp messages send \
  --channel ch_WHATSAPP \
  --to +15551234567 \
  --text "Your order is ready"
```

## Alerts

Your own alert phone: where we reach you if something stops working.

```bash theme={null}
# See your alert phone and what it receives
hookmyapp alerts phone status

# Add or change it (international format)
hookmyapp alerts phone set +14155552671

# Get the code by SMS instead of WhatsApp
hookmyapp alerts phone set +14155552671 --sms

# Finish verification with the code we sent
hookmyapp alerts phone verify 123456

# Remove your alert phone
hookmyapp alerts phone remove
```

We send a 6-digit code to confirm the number, and `set` asks for it. In a script there is no prompt: run `set` with `--json`, then finish with `alerts phone verify <code>`.

Alerts are on once the number is verified.

## Notifications

Notifications from HookMyApp delivered straight to your AI agent, like Claude Code, ChatGPT, or Codex: failing webhooks, disconnected channels, usage limits, and product announcements.

```bash theme={null}
# List open notifications, newest first
hookmyapp notifications

# Include ones already acknowledged
hookmyapp notifications list --all

# Mark a notification seen after relaying it to a human
hookmyapp notifications ack ntf_A1b2C3d4
```

Acknowledging records that the notification was read. It does not mean the problem is fixed.

## Related

* [Customers](/saas-mode/customers): create and select customers.
* [Onboarding links](/saas-mode/onboarding-links): let customers connect their own channels.
* [API overview](/saas-mode/api/overview): manage the same flow from your app.
