@supercheck/cli 0.1.1-beta.2 → 0.1.1-rc.1

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
 
@@ -34,6 +36,15 @@ Upgrade the CLI to the latest release:
34
36
  supercheck upgrade
35
37
  ```
36
38
 
39
+ ## Release Channels
40
+
41
+ The npm package page defaults to the `latest` dist-tag. Prerelease versions (for example, `-rc.x`) are still visible when published with the `latest` tag.
42
+
43
+ ```bash
44
+ npm view @supercheck/cli dist-tags
45
+ npm publish --tag latest --access public
46
+ npm dist-tag add @supercheck/cli@<version> rc
47
+ ```
37
48
 
38
49
  ## Quick Start
39
50
 
@@ -68,12 +79,12 @@ supercheck upgrade
68
79
 
69
80
  6. **Run tests locally (optional)**:
70
81
  ```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
82
+ supercheck test run --file _supercheck_/playwright/homepage-check.<id>.pw.ts
83
+ supercheck test run --all --type browser
84
+ supercheck test run --all --type performance
85
+ supercheck test run --all --type api
86
+ supercheck test run --all --type database
87
+ supercheck test run --all --type custom
77
88
  ```
78
89
 
79
90
  For remote execution with persisted run history, trigger a job:
@@ -102,7 +113,7 @@ supercheck upgrade
102
113
  | `supercheck diff` | Preview changes between local config and cloud |
103
114
  | `supercheck deploy` | Apply local config changes to the cloud |
104
115
  | `supercheck validate` | Validate local test scripts (same rules as Playground) |
105
- | `supercheck destroy --force` | Remove all managed resources from the cloud |
116
+ | `supercheck destroy` | Remove all managed resources from the cloud (`--dry-run`, `--force`) |
106
117
  | `supercheck config validate` | Validate your `supercheck.config.ts` |
107
118
  | `supercheck config print` | Print resolved `supercheck.config.ts` |
108
119
 
@@ -114,8 +125,8 @@ supercheck upgrade
114
125
  |---|---|
115
126
  | `supercheck job list` | List all jobs |
116
127
  | `supercheck job get <id>` | Get job details |
117
- | `supercheck job create --name <name> --tests <test-id...>` | Create a new job with tests |
118
- | `supercheck job update <id> --name ...` | Update job fields |
128
+ | `supercheck job create --name <name> --tests <test-id...>` | Create a new job with tests (`--dry-run`) |
129
+ | `supercheck job update <id> --name ...` | Update job fields (`--dry-run`) |
119
130
  | `supercheck job delete <id>` | Delete a job |
120
131
  | `supercheck job keys <jobId>` | List trigger keys for a job |
121
132
  | `supercheck job keys create <jobId> --name <name>` | Create a trigger key |
@@ -123,7 +134,7 @@ supercheck upgrade
123
134
  | `supercheck job run --id <job-id>` | Run a job immediately |
124
135
  | `supercheck job run --local` | Run a job locally using local test files |
125
136
  | `supercheck job trigger <id> --wait` | Trigger a job and wait for completion (CI/CD) |
126
- | `supercheck run list` | List recent execution runs |
137
+ | `supercheck run list` | List recent execution runs (`--job`, `--status`, `--page`, `--limit`) |
127
138
  | `supercheck run get <id>` | Get run details |
128
139
  | `supercheck run status <id>` | Get run status |
129
140
  | `supercheck run permissions <id>` | Get run permissions |
@@ -134,10 +145,10 @@ supercheck upgrade
134
145
 
135
146
  | Command | Description |
136
147
  |---|---|
137
- | `supercheck test list` | List all tests |
138
- | `supercheck test get <id>` | Get test details |
139
- | `supercheck test create` | Create a new test (browser, performance, api, database, custom) |
140
- | `supercheck test update <id>` | Update a test |
148
+ | `supercheck test list` | List all tests (`--search`, `--type`, `--page`, `--limit`) |
149
+ | `supercheck test get <id>` | Get test details (`--include-script`) |
150
+ | `supercheck test create` | Create a new test (`--dry-run`) |
151
+ | `supercheck test update <id>` | Update a test (`--dry-run`) |
141
152
  | `supercheck test delete <id>` | Delete a test |
142
153
  | `supercheck test validate` | Validate local test scripts (same rules as Playground) |
143
154
  | `supercheck test run` | Run tests locally |
@@ -148,11 +159,13 @@ supercheck upgrade
148
159
  | `supercheck monitor results <id>` | Get monitor check results |
149
160
  | `supercheck monitor stats <id>` | Get monitor statistics |
150
161
  | `supercheck monitor status <id>` | Get current monitor status |
151
- | `supercheck monitor create ...` | Create a monitor |
152
- | `supercheck monitor update <id> ...` | Update a monitor |
162
+ | `supercheck monitor create ...` | Create a monitor (`--interval-minutes`, `--dry-run`) |
163
+ | `supercheck monitor update <id> ...` | Update a monitor (`--interval-minutes`, `--dry-run`) |
153
164
  | `supercheck monitor delete <id>` | Delete a monitor |
154
165
 
155
- `supercheck test run` is local-only. `--cloud`, `--id`, and `--location` are deprecated for direct test execution.
166
+ > **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.
167
+
168
+ `supercheck test run` is local-only. Cloud test execution has been replaced by `supercheck job run` / `supercheck job trigger`.
156
169
 
157
170
  ### Variables, Tags & Notifications
158
171
 
@@ -170,7 +183,7 @@ supercheck upgrade
170
183
  |---|---|
171
184
  | `supercheck health` | Check API health |
172
185
  | `supercheck locations` | List available execution locations |
173
- | `supercheck doctor` | Validate local CLI dependencies and config |
186
+ | `supercheck doctor` | Validate local CLI dependencies and config (`--fix`) |
174
187
  | `supercheck upgrade` | Upgrade the CLI to the latest release |
175
188
 
176
189
  ## Configuration
@@ -235,6 +248,11 @@ test:
235
248
  | `SUPERCHECK_TOKEN` | CLI token for authentication (CI/CD) |
236
249
  | `SUPERCHECK_TRIGGER_KEY` | Trigger key for `job trigger` |
237
250
  | `SUPERCHECK_URL` | Custom API URL (self-hosted) |
251
+ | `SUPERCHECK_ORG` | Override organization ID from config |
252
+ | `SUPERCHECK_PROJECT` | Override project ID from config |
253
+ | `HTTPS_PROXY` | Proxy URL for HTTPS requests |
254
+ | `HTTP_PROXY` | Proxy URL for HTTP requests |
255
+ | `NO_PROXY` | Hosts to bypass proxy (comma-separated) |
238
256
 
239
257
  ## Global Options
240
258
 
@@ -243,10 +261,12 @@ test:
243
261
  | `--json` | Output in JSON format |
244
262
  | `--quiet` | Suppress non-essential output |
245
263
  | `--debug` | Enable debug logging |
264
+ | `--config <path>` | Path to config file (for config-aware commands) |
246
265
  | `-v, --version` | Show CLI version |
247
266
 
248
267
  ## Links
249
268
 
250
269
  - [Website](https://supercheck.io)
251
- - [Documentation](https://supercheck.io/docs/app/welcome)
270
+ - [CLI Documentation](https://supercheck.io/docs/cli/commands)
271
+ - [App Documentation](https://supercheck.io/docs/app/welcome)
252
272
  - [GitHub](https://github.com/supercheck-io/supercheck)