From b3d25cc8abcc88fa037d7a40d490130cfbff4c7c Mon Sep 17 00:00:00 2001 From: "Customer.io Open Source Bot" Date: Tue, 20 Oct 2026 11:04:03 -0700 Subject: [PATCH] Add Customer.io CLI source CioCliPublicExport-RevId: 20dea3510f157c63e69842abc163977acbee14c6 --- cmd/auth.go | 3 ++- cmd/prime_context.md | 2 +- skills/cio/SKILL.md | 16 ++++++++-------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/cmd/auth.go b/cmd/auth.go index 2edaac4..a774e18 100644 --- a/cmd/auth.go +++ b/cmd/auth.go @@ -205,7 +205,8 @@ re-authenticates whichever profile is currently selected (see 'cio profile').`, client.SandboxServiceAccountTokenPrefix, token[:min(len(token), 10)]) output.PrintError(output.CodeValidationError, err.Error(), map[string]any{ - "hint": "Production service account tokens start with sa_live_. Sandbox Builder accounts use sa_sandbox_ until go-live.", + "hint": fmt.Sprintf("Service account tokens start with sa_live_. Copy the token from the token page (%s) or run cio auth signup for a new account.", + resolveCLILoginURL(resolveLoginBaseURL(cmd))), }) return err } diff --git a/cmd/prime_context.md b/cmd/prime_context.md index 5c087bf..7667e2e 100644 --- a/cmd/prime_context.md +++ b/cmd/prime_context.md @@ -85,7 +85,7 @@ Skills provide behavioral guidance, multi-step workflows, and gotchas that are N cio skills # list available skills cio skills read fly-api # Customer.io API guidance — routes to sub-files cio skills read fly-api/campaigns.md # campaign workflows, edge wiring, gotchas -cio skills read cio # skills unique to the CLI (onboarding, auth/login, integration, go-live) +cio skills read cio # skills unique to the CLI (onboarding, auth/login, integration) cio skills read design-studio # Design Studio email creation workflow cio skills read design-studio/nodes.md # node creation, component markup ``` diff --git a/skills/cio/SKILL.md b/skills/cio/SKILL.md index 43797fe..a1734c6 100644 --- a/skills/cio/SKILL.md +++ b/skills/cio/SKILL.md @@ -1,11 +1,12 @@ --- name: cio description: > - Customer.io CLI - use for Customer.io, Journeys, CDP Pipelines, builder - onboarding, sandbox testing, app integration, SDK setup, transactional - messaging, billing activation, going live, service account tokens, sources, - destinations, identify/track events, and fly.customer.io / cdp.customer.io - errors. Trigger even when the user does not name the CLI. + Customer.io CLI - use for Customer.io, Journeys, CDP Pipelines, new-account + onboarding and signup, app integration, SDK setup, message design, message + automation (automations, broadcasts, transactional messages), plans and + billing, service account tokens, sources, destinations, identify/track + events, and fly.customer.io / cdp.customer.io errors. Trigger even when the + user does not name the CLI. --- # Customer.io (`cio`) @@ -36,9 +37,8 @@ Use runtime references instead of copying large playbooks into this skill: Common routing: -- Builder/startup setup, signup, sandbox, first app integration, - transactional proof, billing activation checks, and go-live start with - `cio prime` and `cio skills read cio`. +- New-account setup, signup and login, first app integration, and plan or + billing questions start with `cio prime` and `cio skills read cio`. - Existing Journeys resources such as campaigns, segments, templates, customers, newsletters, and subscription topics should use `cio skills read fly-api`.