@phpsandbox/cli 0.3.0 → 0.3.2

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.
Files changed (2) hide show
  1. package/README.md +18 -0
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -129,3 +129,21 @@ Publishing follows progress and build logs by default. `--no-wait` returns after
129
129
  ## License
130
130
 
131
131
  MIT.
132
+
133
+ ### Reviewed application publishing
134
+
135
+ Use `application plan` to prepare a server-owned review. It never builds or creates resources. The returned review includes blockers, the bound publication identity, resolved destination, required production settings and source snapshot. The platform determines supported choices; use `publication catalog` and `publication resources` for discovery.
136
+
137
+ ```sh
138
+ phpsandbox application plan --provider ssh-server --server SERVER_ID \
139
+ --component web --dockerfile Dockerfile --port 3333 --health-path / \
140
+ --database-resource create --database-type mysql --database-version 8.4 \
141
+ --cache-resource create --cache-type redis --cache-version 7
142
+ phpsandbox application publish REVIEW_ID --yes --wait
143
+ phpsandbox application status APPLICATION_ID
144
+ phpsandbox application retry APPLICATION_ID --yes --wait
145
+ ```
146
+
147
+ Only confirm a ready review after checking its choices. Confirmation sends its reference to Core; the CLI does not recreate source, resource or retry logic. A corrected review keeps the publication's identity and address. `--wait` observes platform state, and stopping the CLI leaves the platform operation running. A timeout requires inspection before retrying. `application plan application.json` or stdin supports multi-component plans; it cannot be mixed with native plan flags. Production settings use `secrets set NAME --environment production`, with values from stdin or a hidden prompt.
148
+
149
+ `application delete APPLICATION_ID --yes` unpublishes. Add `--delete-resources` only when you intend to remove owned resource data; Core enforces shared and external ownership.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.0",
2
+ "version": "0.3.2",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",
@@ -21,12 +21,12 @@
21
21
  "node": ">=22"
22
22
  },
23
23
  "optionalDependencies": {
24
- "@phpsandbox/cli-darwin-arm64": "0.3.0",
25
- "@phpsandbox/cli-darwin-x64": "0.3.0",
26
- "@phpsandbox/cli-linux-x64": "0.3.0",
27
- "@phpsandbox/cli-linux-arm64": "0.3.0",
28
- "@phpsandbox/cli-linux-x64-musl": "0.3.0",
29
- "@phpsandbox/cli-linux-arm64-musl": "0.3.0",
30
- "@phpsandbox/cli-windows-x64": "0.3.0"
24
+ "@phpsandbox/cli-darwin-arm64": "0.3.2",
25
+ "@phpsandbox/cli-darwin-x64": "0.3.2",
26
+ "@phpsandbox/cli-linux-x64": "0.3.2",
27
+ "@phpsandbox/cli-linux-arm64": "0.3.2",
28
+ "@phpsandbox/cli-linux-x64-musl": "0.3.2",
29
+ "@phpsandbox/cli-linux-arm64-musl": "0.3.2",
30
+ "@phpsandbox/cli-windows-x64": "0.3.2"
31
31
  }
32
32
  }