@theholocron/cli 5.0.0-alpha.538 → 5.0.0-alpha.539
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 +31 -0
- package/dist/cli.mjs +519 -96
- package/dist/cli.mjs.map +1 -1
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -496,6 +496,37 @@ equivalent, is skipped with a note — `--required` makes that a failure. For a
|
|
|
496
496
|
job execute the same thing — at a turbo root both are
|
|
497
497
|
`turbo run <task>`. `test:unit` always runs with coverage (`vitest run --coverage`); there is no `--coverage` flag.
|
|
498
498
|
|
|
499
|
+
### `holocron sync <app>`
|
|
500
|
+
|
|
501
|
+
```bash
|
|
502
|
+
holocron sync <app> --env <environment>... [--dry-run]
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
`sync secrets` with an app's identifiers filled in from its own config (spec `tool-app-deploy-sync`, #2608). The app is
|
|
506
|
+
found like `deploy <app>`'s (`resolveApp()`); `--env` (repeated for more than one; `production`, `preview`) is `parseAppEnv()`'s. An app with a `deployment` provider has its
|
|
507
|
+
secrets sent to the project named like it, after `checkProjectDomain()`; one with a `workers` provider has them set on
|
|
508
|
+
the Worker script named like it; one with neither (Council) reports nothing to sync and exits 0. `runAppSync()` passes
|
|
509
|
+
`runSecretsSync()` the routes and the `repo.secrets.deploy` filter that `sync secrets --env <layer>` would take from the
|
|
510
|
+
app's config, so the fail-closed key allow-list is unchanged; an app with a destination and no `repo.secrets.deploy`
|
|
511
|
+
fails naming it. A first value that is not an app's name is a step, as before.
|
|
512
|
+
|
|
513
|
+
### `holocron deploy <app>`
|
|
514
|
+
|
|
515
|
+
```bash
|
|
516
|
+
holocron deploy <app> --env <environment>... [--dry-run]
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
Deploys a workspace app (a package under `apps/`) by name, from the repository root or, with the name left off, from
|
|
520
|
+
inside the app's folder (spec `tool-app-deploy-sync`, #2608). `--env` (alias `--environment`, repeated for more
|
|
521
|
+
than one) names the standard environments (`parseAppEnv()`, over `environment.normalize()`) to deploy to, `production` and
|
|
522
|
+
`preview`; `local`, `development`, `ci` and `test` are refused. Nothing is
|
|
523
|
+
written into the command: the app is found by its folder's name (`resolveApp()`), the project takes that name, and the
|
|
524
|
+
app's own `holocron.config` names the `deployment` provider and the `domain` the project must serve
|
|
525
|
+
(`checkProjectDomain()`, over `Deployment.listDomains()`; a wrong project stops the run before anything is built). It
|
|
526
|
+
then does what the app's `deploy` script did: `pnpm run build`, `deploy stage`, `deploy --files`. An app with no
|
|
527
|
+
`deployment` provider (Comlink's Worker is made by `setup notifications`, Council is installed by hand) is reported and
|
|
528
|
+
exits 0. A first value that is not an app's name is a branch, as before.
|
|
529
|
+
|
|
499
530
|
### `holocron deploy on-release`
|
|
500
531
|
|
|
501
532
|
```bash
|