@blotout/qinto-cli 0.1.22 → 0.1.23

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 CHANGED
@@ -124,7 +124,7 @@ The whole loop is a handful of commands:
124
124
  qinto app create my-app # scaffold, install, and offer to register
125
125
  qinto app dev # run it against a local Qinto
126
126
  qinto app publish # build, upload, and publish a version
127
- qinto app publish --site example.com # …and install it on a site
127
+ qinto app install my-app --site example.com # install the latest version on a site
128
128
  qinto app status my-app --site example.com # desired vs deployed state
129
129
  ```
130
130
 
@@ -501,25 +501,19 @@ What a publish does, in order:
501
501
  exactly what was built. Redeclaring replaces the previous declaration, so a failed upload is fixed by publishing again.
502
502
  5. **Finalize** the version. `artifacts_stale` means the manifest changed after the build; the CLI rebuilds and redeclares once
503
503
  by itself.
504
- 6. **Install**, when `--site` is given.
504
+ Publishing installs nothing. Install the new version with `qinto app install` (below); the last line of the output
505
+ prints that command with the version filled in.
505
506
 
506
507
  | Flag | What it does |
507
508
  | --- | --- |
508
509
  | `--bump <level>` | `patch` (default), `minor`, or `major`, from the highest ready version. |
509
510
  | `--version <version>` | Allocate this exact `x.y.z` instead of bumping. |
510
511
  | `--org <organization>` | Owning organization id or name, when the slug exists in several. |
511
- | `--site <site>` | Install the finalized version on this site (hostname or domain id). |
512
- | `--team <teamId>` | Authorized team to resolve `--site` in. |
513
- | `--accept-capabilities` | Accept the extra capabilities a newer version asks for. |
514
- | `--acknowledge-necessary` | Record that this app runs without visitor consent. |
515
- | `--dry-run` | Build and validate locally; allocate nothing and upload nothing. |
512
+ | `--dry-run` | Build and validate locally; allocate nothing and upload nothing. The UI panel's build output (`ui.dir`) is restored to what it was before the run. |
516
513
  | `--restart` | Discard `.qinto/publish.json` and start a fresh publish. |
517
514
  | `--yes` | Confirm that publishing an app edited in the Qinto platform switches it to the CLI. |
518
515
  | `--no-input` | Disable all interactive prompts. |
519
- | `--json` | Print the published version, and the install when `--site` was given, as JSON. |
520
-
521
- Installing a version the visitor's consent or the capability set does not already cover fails until you accept it. Interactively
522
- the CLI asks; in machine mode it exits `2` and names the flag to pass.
516
+ | `--json` | Print the published version as JSON. |
523
517
 
524
518
  **Editor apps.** An app created for the Qinto platform editor is refused until you confirm that publishing it with the CLI switches
525
519
  it to the CLI permanently. The switch happens when the version is finalized: the editor and its files are then gone, and editor
@@ -527,6 +521,32 @@ changes that were not published are lost. A failed or cancelled publish leaves t
527
521
  a publish from the editor is running: rerun `qinto app publish` when it has finished. Interactively the CLI asks; in machine mode
528
522
  it exits `2` unless you pass `--yes`.
529
523
 
524
+ ### Install — `qinto app install <slug> --site <site>`
525
+
526
+ `install` puts a published version on one of your team's sites. Without `--version` it takes the latest ready version. When the
527
+ app is already on the site, it moves the app to that version, or does nothing if the site already runs it. The site deploys in
528
+ the background; `qinto app status` shows when the deployment has converged.
529
+
530
+ ```sh
531
+ qinto app install my-app --site example.com # the latest version
532
+ qinto app install my-app --site example.com --version 1.4.1 # a specific version
533
+ ```
534
+
535
+ | Flag | What it does |
536
+ | --- | --- |
537
+ | `--site <site>` | Site to install on (hostname or domain id). Required. |
538
+ | `--team <teamId>` | Authorized team to resolve `--site` in. |
539
+ | `--version <version>` | Install this published `x.y.z` instead of the latest. |
540
+ | `--accept-capabilities` | Accept the extra capabilities a newer version asks for. |
541
+ | `--acknowledge-necessary` | Record that this app runs without visitor consent. |
542
+ | `--no-input` | Disable all interactive prompts. |
543
+ | `--json` | Print the install outcome as JSON. |
544
+
545
+ Installing a version the visitor's consent or the capability set does not already cover fails until you accept it. Interactively
546
+ the CLI asks; in machine mode it exits `2` and names the flag to pass. An acceptance applies to one version, so the CLI asks only
547
+ when `--version` names it. Without `--version`, it exits `2` and asks you to rerun with it: a retry against "latest" could
548
+ install a version published after the one you accepted.
549
+
530
550
  ### Inspect — `status`, `versions`, `version cancel`
531
551
 
532
552
  ```sh