@expo-up/cli 0.1.4 → 0.1.6
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 +26 -1
- package/dist/index.js +60943 -16884
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -17,12 +17,28 @@ CLI package for managing self-hosted Expo OTA workflows.
|
|
|
17
17
|
|
|
18
18
|
- `--debug`: enable verbose logs for API calls, release diffing, and error context.
|
|
19
19
|
|
|
20
|
+
## CI/CD Token Auth
|
|
21
|
+
|
|
22
|
+
For non-interactive environments, use:
|
|
23
|
+
- `EXPO_UP_CLI_GITHUB_TOKEN` (recommended)
|
|
24
|
+
- or `--token` per command
|
|
25
|
+
- token must have **write access** to your GitHub storage repository (contents write).
|
|
26
|
+
|
|
27
|
+
Example:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
EXPO_UP_CLI_GITHUB_TOKEN=ghp_xxx expo-up release --channel main --platform all
|
|
31
|
+
```
|
|
32
|
+
|
|
20
33
|
## Command Reference
|
|
21
34
|
|
|
22
35
|
### `expo-up login`
|
|
23
36
|
|
|
24
37
|
Authenticate and store local token/config for subsequent commands.
|
|
25
38
|
|
|
39
|
+
Options:
|
|
40
|
+
- `-t, --token <token>` save token directly (skip OAuth browser flow)
|
|
41
|
+
|
|
26
42
|
### `expo-up logout`
|
|
27
43
|
|
|
28
44
|
Clear locally stored token/config session.
|
|
@@ -51,6 +67,9 @@ expo-up set-channel staging
|
|
|
51
67
|
|
|
52
68
|
List available channels from the storage repository.
|
|
53
69
|
|
|
70
|
+
Options:
|
|
71
|
+
- `-t, --token <token>` use GitHub token directly (CI-friendly)
|
|
72
|
+
|
|
54
73
|
### `expo-up release`
|
|
55
74
|
|
|
56
75
|
Build and upload a new OTA build for a channel/runtime.
|
|
@@ -58,6 +77,7 @@ Build and upload a new OTA build for a channel/runtime.
|
|
|
58
77
|
Options:
|
|
59
78
|
- `--platform <ios|android|all>` default: `all`
|
|
60
79
|
- `--channel <name>` optional channel override
|
|
80
|
+
- `-t, --token <token>` use GitHub token directly (CI-friendly)
|
|
61
81
|
- channel defaults to `main` when no saved/override channel is provided
|
|
62
82
|
|
|
63
83
|
Behavior:
|
|
@@ -71,6 +91,7 @@ Examples:
|
|
|
71
91
|
|
|
72
92
|
```bash
|
|
73
93
|
expo-up release --platform all --channel main
|
|
94
|
+
expo-up release -t "$EXPO_UP_CLI_GITHUB_TOKEN" --platform all --channel main
|
|
74
95
|
expo-up --debug release --platform ios --channel feat/new-home
|
|
75
96
|
```
|
|
76
97
|
|
|
@@ -83,12 +104,14 @@ Options:
|
|
|
83
104
|
- `--delete <buildIds...>` non-interactive delete mode (CI friendly)
|
|
84
105
|
- `--yes` skip confirmation for delete mode
|
|
85
106
|
- `--no-interactive-delete` disable TUI selection mode
|
|
107
|
+
- `-t, --token <token>` use GitHub token directly (CI-friendly)
|
|
86
108
|
- channel defaults to `main` when no saved/override channel is provided
|
|
87
109
|
|
|
88
110
|
Examples:
|
|
89
111
|
|
|
90
112
|
```bash
|
|
91
113
|
expo-up history --channel main
|
|
114
|
+
expo-up history -t "$EXPO_UP_CLI_GITHUB_TOKEN" --channel main
|
|
92
115
|
expo-up history --channel main --delete 10 11 --yes
|
|
93
116
|
```
|
|
94
117
|
|
|
@@ -98,7 +121,8 @@ Rollback channel to previous build or embedded app update.
|
|
|
98
121
|
|
|
99
122
|
Options:
|
|
100
123
|
- `--channel <name>` optional channel override
|
|
101
|
-
-
|
|
124
|
+
- `-b, --to <buildId>` rollback target build
|
|
125
|
+
- `-t, --token <token>` use GitHub token directly (CI-friendly)
|
|
102
126
|
- `--embedded` rollback to embedded/native update
|
|
103
127
|
- channel defaults to `main` when no saved/override channel is provided
|
|
104
128
|
|
|
@@ -106,6 +130,7 @@ Examples:
|
|
|
106
130
|
|
|
107
131
|
```bash
|
|
108
132
|
expo-up rollback --channel main --to 10
|
|
133
|
+
expo-up rollback -t "$EXPO_UP_CLI_GITHUB_TOKEN" --channel main -b 10
|
|
109
134
|
expo-up rollback --channel main --embedded
|
|
110
135
|
```
|
|
111
136
|
|