@supercheck/cli 0.1.1-beta.1 → 0.1.1-beta.3

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
@@ -13,6 +13,8 @@ The Supercheck CLI provides a first-class command-line interface for managing yo
13
13
  - **CI/CD Integration**: Trigger jobs and wait for results directly from your pipeline.
14
14
  - **Full Resource Management**: Manage all resources (tests, monitors, jobs, variables, tags, notifications) from the terminal.
15
15
  - **Local Development**: Run and debug tests locally before deploying.
16
+ - **Security-First**: Token scanning in config files, SHA-256 hashed storage, prefix-validated authentication.
17
+ - **Proxy Support**: Full HTTP/HTTPS proxy support with `NO_PROXY` awareness via `undici`.
16
18
 
17
19
  ## Installation
18
20
 
@@ -68,17 +70,19 @@ supercheck upgrade
68
70
 
69
71
  6. **Run tests locally (optional)**:
70
72
  ```bash
71
- supercheck test run --local --file _supercheck_/playwright/homepage-check.<id>.pw.ts
72
- supercheck test run --local --all --type browser
73
- supercheck test run --local --all --type performance
74
- supercheck test run --local --all --type api
75
- supercheck test run --local --all --type database
76
- supercheck test run --local --all --type custom
73
+ supercheck test run --file _supercheck_/playwright/homepage-check.<id>.pw.ts
74
+ supercheck test run --all --type browser
75
+ supercheck test run --all --type performance
76
+ supercheck test run --all --type api
77
+ supercheck test run --all --type database
78
+ supercheck test run --all --type custom
77
79
  ```
78
80
 
79
- **Run tests in the cloud**:
81
+ For remote execution with persisted run history, trigger a job:
80
82
  ```bash
81
- supercheck test run --cloud --id <test-id>
83
+ supercheck job run --id <job-id>
84
+ # or (CI/CD trigger key flow)
85
+ supercheck job trigger <job-id> --wait
82
86
  ```
83
87
 
84
88
  ## Command Reference
@@ -100,31 +104,59 @@ supercheck upgrade
100
104
  | `supercheck diff` | Preview changes between local config and cloud |
101
105
  | `supercheck deploy` | Apply local config changes to the cloud |
102
106
  | `supercheck validate` | Validate local test scripts (same rules as Playground) |
103
- | `supercheck destroy --force` | Remove all managed resources from the cloud |
107
+ | `supercheck destroy` | Remove all managed resources from the cloud (`--dry-run`, `--force`) |
104
108
  | `supercheck config validate` | Validate your `supercheck.config.ts` |
109
+ | `supercheck config print` | Print resolved `supercheck.config.ts` |
110
+
111
+ > Note: In the current API, status pages are readable/deletable from CLI sync flows, but create/update endpoints are not available.
105
112
 
106
113
  ### Jobs & Runs
107
114
 
108
115
  | Command | Description |
109
116
  |---|---|
110
117
  | `supercheck job list` | List all jobs |
111
- | `supercheck job create --name <name> --tests <test-id...>` | Create a new job with tests |
112
- | `supercheck job run` | Run a job immediately |
118
+ | `supercheck job get <id>` | Get job details |
119
+ | `supercheck job create --name <name> --tests <test-id...>` | Create a new job with tests (`--dry-run`) |
120
+ | `supercheck job update <id> --name ...` | Update job fields (`--dry-run`) |
121
+ | `supercheck job delete <id>` | Delete a job |
122
+ | `supercheck job keys <jobId>` | List trigger keys for a job |
123
+ | `supercheck job keys create <jobId> --name <name>` | Create a trigger key |
124
+ | `supercheck job keys delete <jobId> <keyId>` | Revoke a trigger key |
125
+ | `supercheck job run --id <job-id>` | Run a job immediately |
113
126
  | `supercheck job run --local` | Run a job locally using local test files |
114
127
  | `supercheck job trigger <id> --wait` | Trigger a job and wait for completion (CI/CD) |
115
- | `supercheck run list` | List recent execution runs |
128
+ | `supercheck run list` | List recent execution runs (`--job`, `--status`, `--page`, `--limit`) |
129
+ | `supercheck run get <id>` | Get run details |
130
+ | `supercheck run status <id>` | Get run status |
131
+ | `supercheck run permissions <id>` | Get run permissions |
116
132
  | `supercheck run stream <id>` | Stream live console output |
133
+ | `supercheck run cancel <id>` | Cancel a running execution |
117
134
 
118
135
  ### Tests & Monitors
119
136
 
120
137
  | Command | Description |
121
138
  |---|---|
122
- | `supercheck test list` | List all tests |
123
- | `supercheck test create` | Create a new test (browser, performance, api, database, custom) |
139
+ | `supercheck test list` | List all tests (`--search`, `--type`, `--page`, `--limit`) |
140
+ | `supercheck test get <id>` | Get test details (`--include-script`) |
141
+ | `supercheck test create` | Create a new test (`--dry-run`) |
142
+ | `supercheck test update <id>` | Update a test (`--dry-run`) |
143
+ | `supercheck test delete <id>` | Delete a test |
124
144
  | `supercheck test validate` | Validate local test scripts (same rules as Playground) |
125
- | `supercheck test run` | Run tests locally or in the cloud |
145
+ | `supercheck test run` | Run tests locally |
146
+ | `supercheck test tags <id>` | List tags for a test |
147
+ | `supercheck test status <id>` | Stream live status events for a test |
126
148
  | `supercheck monitor list` | List all monitors |
127
- | `supercheck monitor status <id>` | Check real-time monitor status |
149
+ | `supercheck monitor get <id>` | Get monitor details |
150
+ | `supercheck monitor results <id>` | Get monitor check results |
151
+ | `supercheck monitor stats <id>` | Get monitor statistics |
152
+ | `supercheck monitor status <id>` | Get current monitor status |
153
+ | `supercheck monitor create ...` | Create a monitor (`--interval-minutes`, `--dry-run`) |
154
+ | `supercheck monitor update <id> ...` | Update a monitor (`--interval-minutes`, `--dry-run`) |
155
+ | `supercheck monitor delete <id>` | Delete a monitor |
156
+
157
+ > **Dry run support:** `test create`, `test update`, `job create`, `job update`, `monitor create`, `monitor update`, and `deploy` all support `--dry-run` to preview the API payload without making changes.
158
+
159
+ `supercheck test run` is local-only. Cloud test execution has been replaced by `supercheck job run` / `supercheck job trigger`.
128
160
 
129
161
  ### Variables, Tags & Notifications
130
162
 
@@ -132,7 +164,7 @@ supercheck upgrade
132
164
  |---|---|
133
165
  | `supercheck var list / get / set / delete` | Manage project variables |
134
166
  | `supercheck tag list / create / delete` | Manage tags |
135
- | `supercheck notification list / delete` | Manage notification providers |
167
+ | `supercheck notification list / get / create / update / delete / test` | Manage notification providers |
136
168
  | `supercheck alert history` | View alert history |
137
169
  | `supercheck audit` | View audit logs (admin) |
138
170
 
@@ -142,6 +174,7 @@ supercheck upgrade
142
174
  |---|---|
143
175
  | `supercheck health` | Check API health |
144
176
  | `supercheck locations` | List available execution locations |
177
+ | `supercheck doctor` | Validate local CLI dependencies and config (`--fix`) |
145
178
  | `supercheck upgrade` | Upgrade the CLI to the latest release |
146
179
 
147
180
  ## Configuration
@@ -206,6 +239,11 @@ test:
206
239
  | `SUPERCHECK_TOKEN` | CLI token for authentication (CI/CD) |
207
240
  | `SUPERCHECK_TRIGGER_KEY` | Trigger key for `job trigger` |
208
241
  | `SUPERCHECK_URL` | Custom API URL (self-hosted) |
242
+ | `SUPERCHECK_ORG` | Override organization ID from config |
243
+ | `SUPERCHECK_PROJECT` | Override project ID from config |
244
+ | `HTTPS_PROXY` | Proxy URL for HTTPS requests |
245
+ | `HTTP_PROXY` | Proxy URL for HTTP requests |
246
+ | `NO_PROXY` | Hosts to bypass proxy (comma-separated) |
209
247
 
210
248
  ## Global Options
211
249
 
@@ -214,10 +252,12 @@ test:
214
252
  | `--json` | Output in JSON format |
215
253
  | `--quiet` | Suppress non-essential output |
216
254
  | `--debug` | Enable debug logging |
255
+ | `--config <path>` | Path to config file (for config-aware commands) |
217
256
  | `-v, --version` | Show CLI version |
218
257
 
219
258
  ## Links
220
259
 
221
260
  - [Website](https://supercheck.io)
222
- - [Documentation](https://supercheck.io/docs/app/welcome)
261
+ - [CLI Documentation](https://supercheck.io/docs/cli/commands)
262
+ - [App Documentation](https://supercheck.io/docs/app/welcome)
223
263
  - [GitHub](https://github.com/supercheck-io/supercheck)