@siteoshq/cli 1.12.0 → 2.0.0
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 +27 -22
- package/dist/cli.js +933 -2498
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
# SiteOS CLI
|
|
2
2
|
|
|
3
3
|
`@siteoshq/cli` exposes one `siteos` binary for Auth, common Projects, Pulse, Cookie, Forms,
|
|
4
|
-
Search, Trace, SEO/GEO and Integrations. This source is version
|
|
4
|
+
Search, Trace, SEO/GEO and Integrations. This source is version 2.0.0; source changes require a separate release to reach npm.
|
|
5
|
+
|
|
6
|
+
CLI 2 requires `siteos project use <id-or-slug> --environment <slug>` once per repository.
|
|
7
|
+
It stores only the common selection in private `projects.json`; older service bindings are not
|
|
8
|
+
read or imported. Authentication and installed runtime/deployment credentials remain valid.
|
|
9
|
+
Service-local `project` and `environment` commands have been removed; use `siteos project`.
|
|
10
|
+
|
|
5
11
|
Node.js 22 or newer is required.
|
|
6
12
|
|
|
7
13
|
## Install and authenticate
|
|
@@ -74,7 +80,7 @@ Manage names and website URLs with `project update` and `project environment upd
|
|
|
74
80
|
Cookie/Trace published addresses remain unchanged until explicit republication.
|
|
75
81
|
|
|
76
82
|
`project use` writes one private binding keyed by real repository path and application origin in
|
|
77
|
-
`~/.siteos/
|
|
83
|
+
`~/.siteos/projects.json`. It does not write a tracked global Project file. All service
|
|
78
84
|
management commands use this selection and their own runtime authority. An Organization mismatch
|
|
79
85
|
requires selecting the Project in the active Organization again.
|
|
80
86
|
|
|
@@ -84,7 +90,7 @@ requires selecting the Project in the active Organization again.
|
|
|
84
90
|
|
|
85
91
|
```sh
|
|
86
92
|
siteos project connect pulse --json
|
|
87
|
-
siteos
|
|
93
|
+
siteos project status --json
|
|
88
94
|
siteos pulse init
|
|
89
95
|
siteos pulse validate --json
|
|
90
96
|
siteos pulse test
|
|
@@ -99,8 +105,7 @@ monitoring are explicit operations. `deploy --dry-run` builds locally without up
|
|
|
99
105
|
In a monorepo, run Pulse commands from the directory containing that website's
|
|
100
106
|
`siteos.config.json`. The current source resolves deployment configuration, specs and archive
|
|
101
107
|
output from that directory; private Project selection remains scoped to the Git repository.
|
|
102
|
-
|
|
103
|
-
Use a locally built CLI containing the fix until its separate npm release is available.
|
|
108
|
+
Nested website deployments resolve files relative to that website while retaining the repository’s common Project selection.
|
|
104
109
|
|
|
105
110
|
CLI 1.10.0 adds an optional `environmentVariables` array to each Check, for
|
|
106
111
|
example `"environmentVariables": ["TEST_EMAIL", "TEST_INBOX_TOKEN"]`. Declare names only, and set
|
|
@@ -114,11 +119,11 @@ earlier published versions do not preserve these declarations. See
|
|
|
114
119
|
### Forms and Search
|
|
115
120
|
|
|
116
121
|
```sh
|
|
117
|
-
siteos
|
|
122
|
+
siteos project environment list --json
|
|
118
123
|
siteos forms definition check --manifest .siteos/forms/manifest.json --json
|
|
119
124
|
siteos forms definition sync --environment production --manifest .siteos/forms/manifest.json --json
|
|
120
125
|
siteos forms credential issue --environment production --install --json
|
|
121
|
-
siteos
|
|
126
|
+
siteos project environment list --json
|
|
122
127
|
siteos search diagnostics --environment production --json
|
|
123
128
|
siteos search credential issue --environment production --install --json
|
|
124
129
|
siteos search indexing-credential issue --environment production --install --json
|
|
@@ -205,6 +210,10 @@ Research and GSC Insights use these commands with a matching server release:
|
|
|
205
210
|
siteos seo research summary --json
|
|
206
211
|
siteos seo research history --kind keywords --json
|
|
207
212
|
siteos seo research show <run-id> --json
|
|
213
|
+
siteos seo research serp show <run-id> --keyword "website analytics" --json
|
|
214
|
+
siteos seo research serp ensure <run-id> --keyword "website analytics" --json
|
|
215
|
+
siteos seo research serp wait <run-id> --keyword "website analytics" --json
|
|
216
|
+
siteos seo research serp export <run-id> --keyword "website analytics" --format json --output ./serp-report.json --json
|
|
208
217
|
siteos seo research plan --input ./research-request.json --json
|
|
209
218
|
siteos seo research run --input ./research-request.json --idempotency-key <retry-key> --json
|
|
210
219
|
siteos seo research wait <run-id> --json
|
|
@@ -219,6 +228,8 @@ Research supports keywords, Domain Overview (`domain`), rankings, backlinks, bra
|
|
|
219
228
|
Domain Overview collects domain totals, up to 100 ranking keywords, pages and competitors for a market.
|
|
220
229
|
`--kind domain` includes legacy `competitors` history; existing `competitors` inputs keep their original two-part plan.
|
|
221
230
|
New request example: `{"kind":"domain","target":"example.com","country":"US","language":"en"}`.
|
|
231
|
+
SERP `ensure` collects at most one saved snapshot per returned keyword and Keyword Research report. Repeat calls reuse the saved job, including failures. SERP show/wait/export only read; market and device come from the parent report.
|
|
232
|
+
|
|
222
233
|
Reading/planning/saving spends no research credits. Launch uses Organization credits and the same
|
|
223
234
|
server admission as the interface. Keep the retry key after an uncertain response; no paid retries
|
|
224
235
|
are automatic. Wait exit 3 means pending; exit 4 failed/cancelled. Partial evidence remains readable.
|
|
@@ -241,33 +252,27 @@ version 1 and does not include credentials. The focused plugin skill is `siteos-
|
|
|
241
252
|
siteos health-check --json
|
|
242
253
|
```
|
|
243
254
|
|
|
244
|
-
Diagnostics report
|
|
245
|
-
or reading runtime credentials. A selected Project means local setup exists, not remote health.
|
|
255
|
+
Diagnostics report the common Project selection and local Pulse configuration without contacting
|
|
256
|
+
APIs or reading runtime credentials. A selected Project means local setup exists, not remote health.
|
|
246
257
|
Set `SITEOS_HOME` to relocate private CLI state. Never commit `auth.json` or private bindings.
|
|
247
258
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
old shared API keys are not imported or interpreted.
|
|
253
|
-
|
|
254
|
-
The retained Pulse migration can import a matching version 2 private binding from
|
|
255
|
-
`${XDG_CONFIG_HOME:-~/.config}/siteos/pulse/project-bindings.json` only when the origin, repository,
|
|
256
|
-
Organization and tracked Pulse slug agree. It leaves the original file untouched.
|
|
259
|
+
CLI 2 uses only `siteos project` for Project selection, service setup and environments. Service-local
|
|
260
|
+
Project and environment commands and binding imports have been removed. Re-select existing Projects
|
|
261
|
+
with `project use`; this preserves their data, attachments and credentials. Module resource IDs are
|
|
262
|
+
internal references, not common Project IDs or browser URLs.
|
|
257
263
|
|
|
258
264
|
## Origins and errors
|
|
259
265
|
|
|
260
266
|
`SITEOS_AUTH_BASE_URL` selects the shared application origin for common Projects and all service
|
|
261
|
-
commands using that context (default `https://app.siteos.sh`).
|
|
262
|
-
`SITEOS_PULSE_API_URL`, `SITEOS_FORMS_PUBLIC_URL` and `SITEOS_SEARCH_PUBLIC_URL` overrides. Runtime
|
|
267
|
+
commands using that context (default `https://app.siteos.sh`). Runtime
|
|
263
268
|
integration uses its service's configured public URL and scoped credential.
|
|
264
269
|
|
|
265
270
|
Run `siteos <group> --help` for supported commands. Exit code 0 means success, 2 invalid usage,
|
|
266
|
-
and 1 an operational failure.
|
|
271
|
+
and 1 an operational failure. Pulse additionally uses 3, 4 and 5 for authorization,
|
|
267
272
|
conflict and unavailable-service failures. JSON output is intended for agents and automation.
|
|
268
273
|
|
|
269
274
|
One SiteOS plugin supports Codex and Claude Code, with a general workflow and focused service
|
|
270
|
-
skills.
|
|
275
|
+
skills. The current common-only workflow requires CLI 2.0.0 and plugin 2.0.0.
|
|
271
276
|
|
|
272
277
|
## Development and publication checks
|
|
273
278
|
|