cio)
Run cio prime first. It dumps the full LLM-ready reference — commands,
flags, schemas, pagination, error shapes — so you don't have to guess or
spelunk through --help.
cio prime
Everything below handles the two setup cases you might hit.
If cio isn't installed
If command -v cio returns nothing, fetch the current install options
from the README (source of truth — this skill doesn't list them so it
can't rot), show the user the exact command, and ask before running it:
curl -fsSL https://raw.githubusercontent.com/customerio/cio-cli/main/README.md
If a command fails with an auth error
cio auth login auto-discovers the data center, so don't pass a region
flag. Offer the user two paths:
- User runs it themselves (keeps the token out of chat):
cio auth login - You run it — only if they explicitly paste the token. Pipe via
stdin so it doesn't hit shell history:
echo "$TOKEN" | cio auth login --with-token
Service account tokens (sa_live_...) are at Customer.io UI → Account
Settings → Manage API Credentials → Service Accounts.