@everystack/cli 0.2.4 → 0.2.5
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/package.json +1 -1
- package/src/cli/commands/update.ts +8 -6
- package/src/cli/index.ts +5 -2
package/package.json
CHANGED
|
@@ -16,6 +16,7 @@ export interface UpdateFlags {
|
|
|
16
16
|
branch?: string;
|
|
17
17
|
message?: string;
|
|
18
18
|
platform?: string;
|
|
19
|
+
environment?: string;
|
|
19
20
|
export?: string;
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -26,12 +27,13 @@ export async function updateCommand(flags: UpdateFlags & Record<string, string>)
|
|
|
26
27
|
// (e.g. OUTBOUND_HOST=localhost → LAN IP) to leak into the manifest.
|
|
27
28
|
process.env.EVERYSTACK_UPDATE = '1';
|
|
28
29
|
|
|
29
|
-
//
|
|
30
|
-
//
|
|
31
|
-
//
|
|
32
|
-
//
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
// Set ENVIRONMENT before app.config.js evaluation so the manifest
|
|
31
|
+
// snapshots the correct API URLs and feature flags for the target.
|
|
32
|
+
// --environment is explicit; --stage is NOT used as a fallback because
|
|
33
|
+
// SST stage names (dev, prod) don't match EAS profile names
|
|
34
|
+
// (development, production) and conflating them causes config failures.
|
|
35
|
+
if (flags.environment) {
|
|
36
|
+
process.env.ENVIRONMENT ||= flags.environment;
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
// When --stage is provided, resolve deployed config early so HOST_URL
|
package/src/cli/index.ts
CHANGED
|
@@ -150,8 +150,8 @@ function printHelp() {
|
|
|
150
150
|
everystack - CLI for Expo apps on everystack
|
|
151
151
|
|
|
152
152
|
Usage:
|
|
153
|
-
everystack update --branch <name> --message <msg> [--platform ios|android|web|all] [--stage <name>] [--skip-export]
|
|
154
|
-
everystack update --channel <name> --message <msg> [--platform ios|android|web|all] [--stage <name>] [--skip-export]
|
|
153
|
+
everystack update --branch <name> --message <msg> [--platform ios|android|web|all] [--stage <name>] [--environment <name>] [--skip-export]
|
|
154
|
+
everystack update --channel <name> --message <msg> [--platform ios|android|web|all] [--stage <name>] [--environment <name>] [--skip-export]
|
|
155
155
|
everystack db:migrate [--stage <name>] Run database migrations on deployed Lambda
|
|
156
156
|
everystack db:seed [--stage <name>] Seed database on deployed Lambda (dev only)
|
|
157
157
|
everystack db:reset [--stage <name>] Drop all schemas + re-run migrations (dev only)
|
|
@@ -183,6 +183,9 @@ Stage resolution:
|
|
|
183
183
|
|
|
184
184
|
Without --stage, reads .sst/outputs.json (written by the last \`sst deploy\`).
|
|
185
185
|
|
|
186
|
+
--environment <name> Set ENVIRONMENT for app.config.js evaluation (e.g. development, staging, production).
|
|
187
|
+
Use this when your SST stage name differs from your EAS build profile name.
|
|
188
|
+
|
|
186
189
|
Auth:
|
|
187
190
|
All commands use AWS IAM credentials (default credential chain).
|
|
188
191
|
Mobile publishes also accept EVERYSTACK_TOKEN env var.
|