@otalan/cli 1.3.3 → 1.3.4
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/CHANGELOG.md +9 -3
- package/README.md +26 -16
- package/dist/bin.js +15 -15
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@otalan/cli` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 1.3.4 - 2026-05-21
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Rename user-facing key wording to OTA Publish Key and OTA App Key, while documenting the existing `otalan_ci_` and `otalan_ota_` internal prefixes.
|
|
10
|
+
|
|
5
11
|
## 1.3.3 - 2026-05-18
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
@@ -76,7 +82,7 @@ All notable changes to `@otalan/cli` will be documented in this file.
|
|
|
76
82
|
|
|
77
83
|
### Changed
|
|
78
84
|
|
|
79
|
-
- Let `otalan login` reuse the saved API URL and keep the saved
|
|
85
|
+
- Let `otalan login` reuse the saved API URL and keep the saved OTA Publish Key from a masked prompt.
|
|
80
86
|
- Export Expo bundles into a project-local `.otalan/expo-export-*` folder so Expo accepts the output path.
|
|
81
87
|
- Fall back to the resolved app version when Expo runtimeVersion is not configured or present in export metadata.
|
|
82
88
|
- Clarify Capacitor and Expo bundling behavior in CLI help and README.
|
|
@@ -102,7 +108,7 @@ All notable changes to `@otalan/cli` will be documented in this file.
|
|
|
102
108
|
### Changed
|
|
103
109
|
|
|
104
110
|
- Clean public README examples to avoid project-specific app IDs, generated-looking slugs, and local development API URLs.
|
|
105
|
-
- Keep user-facing login guidance pointed at the public Otalan
|
|
111
|
+
- Keep user-facing login guidance pointed at the public Otalan keys page.
|
|
106
112
|
|
|
107
113
|
## 1.0.6 - 2026-05-05
|
|
108
114
|
|
|
@@ -156,6 +162,6 @@ Initial public release of the Otalan CLI.
|
|
|
156
162
|
- Expo OTA bundle packaging through `expo export`.
|
|
157
163
|
- Release publishing with rollout metadata and server-side validation polling.
|
|
158
164
|
- Bundle listing, active bundle status, and rollback commands.
|
|
159
|
-
-
|
|
165
|
+
- OTA Publish Key login, project initialization, and API connectivity doctor checks.
|
|
160
166
|
- Runtime version resolution helpers.
|
|
161
167
|
- Public npm package metadata, license notices, and Bun-based CLI entrypoint.
|
package/README.md
CHANGED
|
@@ -9,9 +9,14 @@ Published as an npm package, but the CLI itself runs on Bun.
|
|
|
9
9
|
## Requirements
|
|
10
10
|
|
|
11
11
|
- Bun `>= 1.3.11` installed and available on your `PATH`
|
|
12
|
-
- An Otalan **
|
|
12
|
+
- An Otalan **OTA Publish Key** for commands that talk to the Otalan API
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Otalan key prefixes are stable API identifiers:
|
|
15
|
+
|
|
16
|
+
- **OTA Publish Key** values use the `otalan_ci_` prefix internally.
|
|
17
|
+
- **OTA App Key** values use the `otalan_ota_` prefix internally.
|
|
18
|
+
|
|
19
|
+
Do not use an OTA App Key in the CLI. OTA App Keys can be embedded in mobile app code for update checks, but they should not be shared outside the app or used for release automation.
|
|
15
20
|
|
|
16
21
|
## Platform Support
|
|
17
22
|
|
|
@@ -50,7 +55,7 @@ bun ./src/bin.ts help
|
|
|
50
55
|
|
|
51
56
|
### Capacitor
|
|
52
57
|
|
|
53
|
-
1. Log in with your
|
|
58
|
+
1. Log in with your OTA Publish Key:
|
|
54
59
|
|
|
55
60
|
```bash
|
|
56
61
|
otalan login --api-key otalan_ci_xxx
|
|
@@ -81,7 +86,7 @@ otalan publish --channel production
|
|
|
81
86
|
|
|
82
87
|
### Expo
|
|
83
88
|
|
|
84
|
-
1. Log in with your
|
|
89
|
+
1. Log in with your OTA Publish Key:
|
|
85
90
|
|
|
86
91
|
```bash
|
|
87
92
|
otalan login --api-key otalan_ci_xxx
|
|
@@ -110,11 +115,11 @@ otalan publish --channel production
|
|
|
110
115
|
|
|
111
116
|
## CI/CD Usage
|
|
112
117
|
|
|
113
|
-
The CLI is designed to work well in CI/CD with a project-scoped
|
|
118
|
+
The CLI is designed to work well in CI/CD with a project-scoped OTA Publish Key.
|
|
114
119
|
|
|
115
120
|
Set these secrets in your CI provider:
|
|
116
121
|
|
|
117
|
-
- `OTALAN_API_KEY`
|
|
122
|
+
- `OTALAN_API_KEY` with your OTA Publish Key
|
|
118
123
|
- `OTALAN_APP_ID` for an active app
|
|
119
124
|
|
|
120
125
|
Optional:
|
|
@@ -187,8 +192,8 @@ Adjust the build step and bundle target for your app:
|
|
|
187
192
|
## What It Does
|
|
188
193
|
|
|
189
194
|
- logs into the Otalan API
|
|
190
|
-
- checks API connectivity and
|
|
191
|
-
- generates
|
|
195
|
+
- checks API connectivity and OTA Publish Key context
|
|
196
|
+
- generates OTA Publish Key and OTA App Key material locally for dashboard import
|
|
192
197
|
- links the current repo to an Otalan app
|
|
193
198
|
- bundles Capacitor or Expo OTA output
|
|
194
199
|
- publishes a bundle with rollout metadata
|
|
@@ -250,12 +255,17 @@ otalan keygen --kind ci
|
|
|
250
255
|
otalan keygen --kind ota
|
|
251
256
|
```
|
|
252
257
|
|
|
253
|
-
If `--kind` is omitted, the CLI prompts for `
|
|
258
|
+
If `--kind` is omitted, the CLI prompts for `OTA Publish Key` or `OTA App Key`.
|
|
259
|
+
|
|
260
|
+
The `--kind` values and generated key prefixes keep the existing internal API identifiers:
|
|
261
|
+
|
|
262
|
+
- `--kind ci` generates an OTA Publish Key with the `otalan_ci_` prefix.
|
|
263
|
+
- `--kind ota` generates an OTA App Key with the `otalan_ota_` prefix.
|
|
254
264
|
|
|
255
265
|
Output includes both the full Otalan key and the base64url suffix without the `otalan_ci_` or `otalan_ota_` prefix:
|
|
256
266
|
|
|
257
267
|
```text
|
|
258
|
-
Generated
|
|
268
|
+
Generated OTA Publish Key.
|
|
259
269
|
|
|
260
270
|
Full key:
|
|
261
271
|
otalan_ci_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
@@ -264,13 +274,13 @@ Key without prefix:
|
|
|
264
274
|
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
265
275
|
```
|
|
266
276
|
|
|
267
|
-
`otalan keygen` only creates local key material. Importing or activating a key should still happen through an authenticated dashboard flow; an existing
|
|
277
|
+
`otalan keygen` only creates local key material. Importing or activating a key should still happen through an authenticated dashboard flow; an existing OTA Publish Key should not be able to create more keys. OTA App Keys are intended for embedded app update checks and should not be shared or used as CLI credentials.
|
|
268
278
|
|
|
269
279
|
### `otalan login`
|
|
270
280
|
|
|
271
|
-
Saves the project
|
|
281
|
+
Saves the project OTA Publish Key and API base URL locally.
|
|
272
282
|
|
|
273
|
-
If auth is already saved, `otalan login` shows the current API URL as the prompt default and shows the current
|
|
283
|
+
If auth is already saved, `otalan login` shows the current API URL as the prompt default and shows the current OTA Publish Key in masked form. Press Enter to keep either value.
|
|
274
284
|
|
|
275
285
|
```bash
|
|
276
286
|
otalan login --api-key otalan_ci_xxx --api-url https://api.otalan.com
|
|
@@ -278,7 +288,7 @@ otalan login --api-key otalan_ci_xxx --api-url https://api.otalan.com
|
|
|
278
288
|
|
|
279
289
|
### `otalan doctor`
|
|
280
290
|
|
|
281
|
-
Checks API connectivity and prints the organization/project context resolved from the configured
|
|
291
|
+
Checks API connectivity and prints the organization/project context resolved from the configured OTA Publish Key.
|
|
282
292
|
|
|
283
293
|
```bash
|
|
284
294
|
otalan doctor
|
|
@@ -294,7 +304,7 @@ otalan doctor --api-key "$OTALAN_API_KEY" --api-url "${OTALAN_API_URL:-https://a
|
|
|
294
304
|
|
|
295
305
|
Creates `otalan.config.json` in the current project.
|
|
296
306
|
|
|
297
|
-
`otalan init` lists the active apps in the project resolved from the logged-in
|
|
307
|
+
`otalan init` lists the active apps in the project resolved from the logged-in OTA Publish Key and lets you select one. `appId` is scoped to that project, not globally unique across all projects. Archived apps are not listed and are treated as unavailable for CI publish, rollback, status, and bundle listing commands.
|
|
298
308
|
|
|
299
309
|
Run `otalan init` once per app repo or working folder. If you switch to another checkout, folder, or app project, run `otalan init` there too so that folder has its own `otalan.config.json`.
|
|
300
310
|
|
|
@@ -575,6 +585,6 @@ bun pm pack --dry-run
|
|
|
575
585
|
- This is a Bun-based CLI published on npm.
|
|
576
586
|
- Expo bundling uses `bunx expo ...`.
|
|
577
587
|
- Default API URL is `https://api.otalan.com`.
|
|
578
|
-
- Publishing, rollback, status, and `bundles` expect
|
|
588
|
+
- Publishing, rollback, status, and `bundles` expect an OTA Publish Key and an active app.
|
|
579
589
|
- Bundle and release commands print the linked project and app before continuing when project config is available.
|
|
580
590
|
- Run `bun run build` after changing CLI source if you want `dist/bin.js` updated locally.
|