@levr-one/cli 0.1.1 → 0.3.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 CHANGED
@@ -12,7 +12,30 @@ npm install -g @levr-one/cli # global install for daily use
12
12
  npx @levr-one/cli --help
13
13
  ```
14
14
 
15
- The package is self-contained — no peer setup required.
15
+ The package is self-contained — no peer setup required. A global install
16
+ replaces the `levr` bin from the deprecated `@levr-one/setup` package.
17
+
18
+ ## Get started
19
+
20
+ Pushing test results needs authentication and nothing else — log in once
21
+ (or set `LEVR_TOKEN` in CI):
22
+
23
+ ```bash
24
+ levr auth login # browser PKCE (or --device-code for SSH/headless)
25
+ levr push ./results.xml
26
+ ```
27
+
28
+ Using an AI client (Claude Desktop/Code, Cursor, Windsurf, Zed)? Wire the
29
+ Levr MCP server into it with one command — no login needed; the client opens
30
+ a browser to authorize the first time it connects:
31
+
32
+ ```bash
33
+ npx @levr-one/cli mcp add # detect installed clients and pick interactively
34
+ ```
35
+
36
+ Config edits preserve your existing MCP servers and comments, and re-running
37
+ is a no-op. Use `--all`, `--client <id>`, or `--yes` for non-interactive
38
+ runs and `--dry-run` to preview.
16
39
 
17
40
  ### Shell completion (optional)
18
41
 
@@ -149,13 +172,14 @@ withEnv(["LEVR_TOKEN=${LEVR_TOKEN}"]) {
149
172
 
150
173
  All configuration is via environment variables. Flags take precedence.
151
174
 
152
- | Variable | Description | Default |
153
- | --------------- | --------------------------------------------------------------------------------------- | ----------------------- |
154
- | `LEVR_TOKEN` | Personal Access Token (for CI / headless) | |
155
- | `LEVR_URL` | API base URL | `https://api.levr.one` |
156
- | `LEVR_AUTH_URL` | Auth server URL | `https://auth.levr.one` |
157
- | `LEVR_TEAM_ID` | Default team ID (optional; server resolves from automation source or workspace default) | |
158
- | `LEVR_SOURCE` | Automation source name override (groups imports, remembers team) | |
175
+ | Variable | Description | Default |
176
+ | --------------- | --------------------------------------------------------------------------------------- | ---------------------- |
177
+ | `LEVR_TOKEN` | Personal Access Token (for CI / headless) | |
178
+ | `LEVR_URL` | API base URL (`--url` flag > `LEVR_URL` > URL stored at login > default) | `https://api.levr.one` |
179
+ | `LEVR_AUTH_URL` | Auth server URL for the browser login page (derived from the API URL when unset) | derived |
180
+ | `LEVR_MCP_URL` | MCP server URL written by `levr mcp add` (derived from the API URL when unset) | derived |
181
+ | `LEVR_TEAM_ID` | Default team ID (optional; server resolves from automation source or workspace default) | |
182
+ | `LEVR_SOURCE` | Automation source name override (groups imports, remembers team) | |
159
183
 
160
184
  ## Troubleshooting
161
185