@supercheck/cli 0.1.0-beta.3 → 0.1.0-beta.4

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
@@ -9,10 +9,10 @@ The Supercheck CLI provides a first-class command-line interface for managing yo
9
9
 
10
10
  ## Features
11
11
 
12
- - **Monitoring-as-Code**: Define monitors, tests, and status pages in TypeScript.
12
+ - **Monitoring-as-Code**: Define monitors, tests, jobs, and status pages in TypeScript.
13
13
  - **CI/CD Integration**: Trigger jobs and wait for results directly from your pipeline.
14
- - **Local Development**: Run and debug tests locally before deploying.
15
- - **Full API Access**: Manage all resources (jobs, variables, tags) from the terminal.
14
+ - **Full Resource Management**: Manage all resources (tests, monitors, jobs, variables, tags, notifications) from the terminal.
15
+ - **Modern UX**: Spinners, colorized output, status indicators, and interactive prompts.
16
16
 
17
17
  ## Installation
18
18
 
@@ -40,13 +40,14 @@ npx @supercheck/cli --help
40
40
  ```
41
41
  You can generate a CLI token in your Dashboard under **Project Settings > CLI Tokens**.
42
42
 
43
- 3. **Validate configuration**:
43
+ 3. **Pull existing resources**:
44
44
  ```bash
45
- supercheck config validate
45
+ supercheck pull
46
46
  ```
47
47
 
48
- 4. **Deploy to Cloud**:
48
+ 4. **Preview & Deploy**:
49
49
  ```bash
50
+ supercheck diff
50
51
  supercheck deploy
51
52
  ```
52
53
 
@@ -54,30 +55,60 @@ npx @supercheck/cli --help
54
55
 
55
56
  ### Authentication
56
57
 
57
- - `supercheck login --token <token>`: Authenticate with a CLI token.
58
- - `supercheck logout`: clear stored credentials.
59
- - `supercheck whoami`: Show current authentication context.
58
+ | Command | Description |
59
+ |---|---|
60
+ | `supercheck login --token <token>` | Authenticate with a CLI token |
61
+ | `supercheck logout` | Clear stored credentials |
62
+ | `supercheck whoami` | Show current authentication context |
63
+
64
+ ### Monitoring-as-Code
65
+
66
+ | Command | Description |
67
+ |---|---|
68
+ | `supercheck init` | Initialize a new project with config and example tests |
69
+ | `supercheck pull` | Sync cloud resources to local config |
70
+ | `supercheck diff` | Preview changes between local config and cloud |
71
+ | `supercheck deploy` | Apply local config changes to the cloud |
72
+ | `supercheck destroy --force` | Remove all managed resources from the cloud |
73
+ | `supercheck config validate` | Validate your `supercheck.config.ts` |
60
74
 
61
75
  ### Jobs & Runs
62
76
 
63
- - `supercheck job list`: List all jobs.
64
- - `supercheck job trigger <id> --wait`: Trigger a job and wait for completion (ideal for CI/CD).
65
- - `supercheck job run --id <id>`: Run a job immediately.
66
- - `supercheck run list`: List recent execution runs.
67
- - `supercheck run stream <id>`: Stream live console output from a running job.
77
+ | Command | Description |
78
+ |---|---|
79
+ | `supercheck job list` | List all jobs |
80
+ | `supercheck job create` | Create a new job |
81
+ | `supercheck job run` | Run a job immediately |
82
+ | `supercheck job trigger <id> --wait` | Trigger a job and wait for completion (CI/CD) |
83
+ | `supercheck run list` | List recent execution runs |
84
+ | `supercheck run stream <id>` | Stream live console output |
68
85
 
69
86
  ### Tests & Monitors
70
87
 
71
- - `supercheck test list`: List all tests.
72
- - `supercheck test create --file <path>`: Create a new test from a script file.
73
- - `supercheck monitor list`: List all monitors.
74
- - `supercheck monitor status <id>`: Check the real-time status of a monitor.
88
+ | Command | Description |
89
+ |---|---|
90
+ | `supercheck test list` | List all tests |
91
+ | `supercheck test create` | Create a new test |
92
+ | `supercheck test validate` | Validate local test scripts |
93
+ | `supercheck monitor list` | List all monitors |
94
+ | `supercheck monitor status <id>` | Check real-time monitor status |
95
+
96
+ ### Variables, Tags & Notifications
75
97
 
76
- ### Resources
98
+ | Command | Description |
99
+ |---|---|
100
+ | `supercheck var list / get / set / delete` | Manage project variables |
101
+ | `supercheck tag list / create / delete` | Manage tags |
102
+ | `supercheck notification list / delete` | Manage notification providers |
103
+ | `supercheck alert history` | View alert history |
104
+ | `supercheck audit` | View audit logs (admin) |
77
105
 
78
- - `supercheck pull`: Sync cloud resources to your local config.
79
- - `supercheck diff`: Preview changes between local config and cloud.
80
- - `supercheck deploy`: Apply local config changes to the cloud.
106
+ ### Utilities
107
+
108
+ | Command | Description |
109
+ |---|---|
110
+ | `supercheck health` | Check API health |
111
+ | `supercheck locations` | List available execution locations |
81
112
 
82
113
  ## Configuration
83
114
 
@@ -89,8 +120,8 @@ import { defineConfig } from '@supercheck/cli'
89
120
  export default defineConfig({
90
121
  schemaVersion: '1.0',
91
122
  project: {
92
- organization: 'my-org-slug',
93
- project: 'my-project-slug',
123
+ organization: 'my-org-id',
124
+ project: 'my-project-id',
94
125
  },
95
126
  tests: {
96
127
  playwright: {
@@ -117,8 +148,7 @@ export default defineConfig({
117
148
 
118
149
  ```yaml
119
150
  - name: Run E2E Tests
120
- run: |
121
- npx @supercheck/cli job trigger ${{ secrets.SUPERCHECK_JOB_ID }} --wait --json
151
+ run: npx @supercheck/cli job trigger ${{ secrets.SUPERCHECK_JOB_ID }} --wait --json
122
152
  env:
123
153
  SUPERCHECK_TOKEN: ${{ secrets.SUPERCHECK_TOKEN }}
124
154
  ```
@@ -135,3 +165,25 @@ test:
135
165
  SUPERCHECK_TOKEN: $SUPERCHECK_TOKEN
136
166
  ```
137
167
 
168
+ ## Environment Variables
169
+
170
+ | Variable | Description |
171
+ |---|---|
172
+ | `SUPERCHECK_TOKEN` | CLI token for authentication (CI/CD) |
173
+ | `SUPERCHECK_TRIGGER_KEY` | Trigger key for `job trigger` |
174
+ | `SUPERCHECK_URL` | Custom API URL (self-hosted) |
175
+
176
+ ## Global Options
177
+
178
+ | Flag | Description |
179
+ |---|---|
180
+ | `--json` | Output in JSON format |
181
+ | `--quiet` | Suppress non-essential output |
182
+ | `--debug` | Enable debug logging |
183
+ | `-v, --version` | Show CLI version |
184
+
185
+ ## Links
186
+
187
+ - [Website](https://supercheck.io)
188
+ - [Documentation](https://docs.supercheck.io)
189
+ - [GitHub](https://github.com/supercheck-io/supercheck)