@phpsandbox/cli 0.6.0 → 0.6.1-canary.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.
- package/README.md +10 -9
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -29,7 +29,11 @@ On Windows, download `psb-windows-x64.exe`, compare `Get-FileHash -Algorithm SHA
|
|
|
29
29
|
|
|
30
30
|
`psb` is the command name. The npm package remains `@phpsandbox/cli`; npm also installs `phpsandbox` as a compatibility alias. Existing environment variables and `.phpsandbox.json` files continue to work.
|
|
31
31
|
|
|
32
|
-
Project features use
|
|
32
|
+
Project features use the workspace ID from its `/p/PROJECT_ID` URL. Use `psb project show --project PROJECT_ID --json` to find its compute sandbox ID, then pass that ID to compute commands with `--sandbox`.
|
|
33
|
+
|
|
34
|
+
Use the same `--project` value with `psb feedback list`, `psb payments show`, `psb customers list`, and `psb publication status`. Customers defaults to the development environment. Use `--mode live` to read production customers.
|
|
35
|
+
|
|
36
|
+
Create a product workspace with `psb project create --name 'My app' --request-id UUID --json`. Save the UUID before making the request, and reuse it when checking or retrying an uncertain result. Use the returned `id` for product features and `sandboxId` for compute commands.
|
|
33
37
|
|
|
34
38
|
## Your first sandbox
|
|
35
39
|
|
|
@@ -142,15 +146,12 @@ MIT.
|
|
|
142
146
|
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.
|
|
143
147
|
|
|
144
148
|
```sh
|
|
145
|
-
psb application
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
psb application publish REVIEW_ID --yes --wait
|
|
150
|
-
psb application status APPLICATION_ID
|
|
151
|
-
psb application retry APPLICATION_ID --yes --wait
|
|
149
|
+
psb application config --project PROJECT_ID --json
|
|
150
|
+
psb application plan --project PROJECT_ID --expected-revision REVISION --app APP_ID --json
|
|
151
|
+
psb application publish REVIEW_ID --project PROJECT_ID --proposal SIGNED_PROPOSAL --yes --wait
|
|
152
|
+
psb publication status --project PROJECT_ID --json
|
|
152
153
|
```
|
|
153
154
|
|
|
154
|
-
|
|
155
|
+
Check the destination and source revision before confirming a ready review. For a Git-backed app, ensure the workspace is on the intended branch and use `psb git targets sync TARGET_ID --direction pull --yes` to refresh the saved Git target. The plan returns the `review.id` and signed `review.proposal` needed for confirmation. `--wait` observes platform state, and stopping the CLI leaves the platform operation running. A timeout requires inspection before retrying. Set production values with `secrets set NAME --environment production` using stdin or a hidden prompt.
|
|
155
156
|
|
|
156
157
|
`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.6.
|
|
2
|
+
"version": "0.6.1-canary.2",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"node": ">=22"
|
|
23
23
|
},
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@phpsandbox/cli-darwin-arm64": "0.6.
|
|
26
|
-
"@phpsandbox/cli-darwin-x64": "0.6.
|
|
27
|
-
"@phpsandbox/cli-linux-x64": "0.6.
|
|
28
|
-
"@phpsandbox/cli-linux-arm64": "0.6.
|
|
29
|
-
"@phpsandbox/cli-linux-x64-musl": "0.6.
|
|
30
|
-
"@phpsandbox/cli-linux-arm64-musl": "0.6.
|
|
31
|
-
"@phpsandbox/cli-windows-x64": "0.6.
|
|
25
|
+
"@phpsandbox/cli-darwin-arm64": "0.6.1-canary.2",
|
|
26
|
+
"@phpsandbox/cli-darwin-x64": "0.6.1-canary.2",
|
|
27
|
+
"@phpsandbox/cli-linux-x64": "0.6.1-canary.2",
|
|
28
|
+
"@phpsandbox/cli-linux-arm64": "0.6.1-canary.2",
|
|
29
|
+
"@phpsandbox/cli-linux-x64-musl": "0.6.1-canary.2",
|
|
30
|
+
"@phpsandbox/cli-linux-arm64-musl": "0.6.1-canary.2",
|
|
31
|
+
"@phpsandbox/cli-windows-x64": "0.6.1-canary.2"
|
|
32
32
|
}
|
|
33
33
|
}
|