@customerio/cli 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ npx skills add customerio/cli
|
|
|
45
45
|
|
|
46
46
|
## Authentication
|
|
47
47
|
|
|
48
|
-
The CLI uses **service account tokens**
|
|
48
|
+
The CLI uses **service account tokens** for authentication. Production tokens use `sa_live_...`; Builder sandbox signup can temporarily return `sa_sandbox_...` until go-live. These are exchanged for short-lived JWTs via OAuth 2.0 client credentials, just like `gh auth`.
|
|
49
49
|
|
|
50
50
|
### Login
|
|
51
51
|
|
|
@@ -77,7 +77,7 @@ also need `CIO_REGION=us|eu` or `--api-url`.
|
|
|
77
77
|
|
|
78
78
|
### How It Works
|
|
79
79
|
|
|
80
|
-
1. You provide a `sa_live_...`
|
|
80
|
+
1. You provide a service account token (`sa_live_...` from Customer.io UI → Account Settings → Manage API Credentials → Service Accounts, or `sa_sandbox_...` returned by Builder sandbox signup)
|
|
81
81
|
2. The CLI exchanges it for a JWT via `POST /v1/service_accounts/oauth/token`
|
|
82
82
|
3. The JWT is cached locally and refreshed automatically when it expires
|
|
83
83
|
4. All API calls use `Authorization: Bearer <jwt>`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@customerio/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "Agent-first CLI for Customer.io APIs",
|
|
5
5
|
"bin": {
|
|
6
6
|
"cio": ".npm/run.js"
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"README.md"
|
|
12
12
|
],
|
|
13
13
|
"optionalDependencies": {
|
|
14
|
-
"@customerio/cli-darwin-arm64": "0.0.
|
|
15
|
-
"@customerio/cli-darwin-x64": "0.0.
|
|
16
|
-
"@customerio/cli-linux-arm64": "0.0.
|
|
17
|
-
"@customerio/cli-linux-x64": "0.0.
|
|
18
|
-
"@customerio/cli-win32-arm64": "0.0.
|
|
19
|
-
"@customerio/cli-win32-x64": "0.0.
|
|
14
|
+
"@customerio/cli-darwin-arm64": "0.0.10",
|
|
15
|
+
"@customerio/cli-darwin-x64": "0.0.10",
|
|
16
|
+
"@customerio/cli-linux-arm64": "0.0.10",
|
|
17
|
+
"@customerio/cli-linux-x64": "0.0.10",
|
|
18
|
+
"@customerio/cli-win32-arm64": "0.0.10",
|
|
19
|
+
"@customerio/cli-win32-x64": "0.0.10"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public",
|