@phpsandbox/cli 0.5.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.
Files changed (2) hide show
  1. package/README.md +11 -8
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -29,6 +29,12 @@ 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 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.
37
+
32
38
  ## Your first sandbox
33
39
 
34
40
  Run `psb auth login` to sign in through your browser. Compare the code, select one or more subscribed Helfer organizations, and approve. The CLI stores a separate key for each in your operating system credential store.
@@ -140,15 +146,12 @@ MIT.
140
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.
141
147
 
142
148
  ```sh
143
- psb application plan --provider ssh-server --server SERVER_ID \
144
- --component web --dockerfile Dockerfile --port 3333 --health-path / \
145
- --database-resource create --database-type mysql --database-version 8.4 \
146
- --cache-resource create --cache-type redis --cache-version 7
147
- psb application publish REVIEW_ID --yes --wait
148
- psb application status APPLICATION_ID
149
- 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
150
153
  ```
151
154
 
152
- 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.
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.
153
156
 
154
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.5.0",
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.5.0",
26
- "@phpsandbox/cli-darwin-x64": "0.5.0",
27
- "@phpsandbox/cli-linux-x64": "0.5.0",
28
- "@phpsandbox/cli-linux-arm64": "0.5.0",
29
- "@phpsandbox/cli-linux-x64-musl": "0.5.0",
30
- "@phpsandbox/cli-linux-arm64-musl": "0.5.0",
31
- "@phpsandbox/cli-windows-x64": "0.5.0"
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
  }