@radhya/mach 2.0.3 → 2.0.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/README.md +13 -1
- package/dist/index.js +89 -87
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ mach build --platform android
|
|
|
39
39
|
| `mach submit` | Submit to App Store or Google Play |
|
|
40
40
|
| `mach credentials` | Manage iOS certificates, provisioning profiles & Android keystores |
|
|
41
41
|
| `mach credentials:service` | Upload App Store Connect or Google Play service credentials |
|
|
42
|
-
| `mach env` | Manage environment variables and secrets
|
|
42
|
+
| `mach env` | Manage, list, and download environment variables and secrets |
|
|
43
43
|
| `mach config` | Show resolved configuration for a build profile |
|
|
44
44
|
| `mach start` | Start the Metro development server |
|
|
45
45
|
| `mach device` | Register test devices for ad-hoc distribution |
|
|
@@ -352,8 +352,20 @@ mach env set API_URL=https://api.example.com SECRET_KEY=xxx
|
|
|
352
352
|
|
|
353
353
|
# List all secrets
|
|
354
354
|
mach env list
|
|
355
|
+
|
|
356
|
+
# Download development secrets to .env.local
|
|
357
|
+
mach env pull
|
|
358
|
+
|
|
359
|
+
# Download a specific environment
|
|
360
|
+
mach env pull --environment staging
|
|
361
|
+
mach env pull --environment production --out .env.production.local
|
|
362
|
+
|
|
363
|
+
# Replace an existing local env file
|
|
364
|
+
mach env pull --environment development --out .env.local --overwrite
|
|
355
365
|
```
|
|
356
366
|
|
|
367
|
+
`mach env pull` downloads decrypted secrets for local development. It defaults to `--environment development` and `--out .env.local`. The exported file includes `global` secrets plus the selected environment's overrides. Mach refuses to overwrite an existing file unless `--overwrite` is provided. `mach env download` and `mach env export` are aliases for the same behavior.
|
|
368
|
+
|
|
357
369
|
Mach includes the resolved environment in the build fingerprint, so development, staging, and production builds do not reuse a native build cache when their injected variables differ. If a stored secret cannot be decrypted, Mach surfaces that as a configuration problem instead of silently injecting `[Decryption Failed]` into a production binary.
|
|
358
370
|
|
|
359
371
|
### Android Keystore Passwords
|