@testiumhq/cli 1.0.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 +71 -0
- package/dist/cli.js +180 -0
- package/package.json +69 -0
package/README.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# TestiumHQ CLI
|
|
2
|
+
|
|
3
|
+
The official command-line interface for TestiumHQ. Record, manage, and execute automated tests directly from your terminal.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Install the CLI globally using npm:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g testiumhq
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
*Requires Node.js 18 or higher.*
|
|
14
|
+
|
|
15
|
+
## Getting Started
|
|
16
|
+
|
|
17
|
+
Follow these steps to set up TestiumHQ in your project:
|
|
18
|
+
|
|
19
|
+
### 1. Initialize Your Project
|
|
20
|
+
Run this command in your project's root directory:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
testiumhq init
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
This will create a `testiumhq.config.json` file and a `tests/` directory to store your recorded Playwright scripts.
|
|
27
|
+
|
|
28
|
+
### 2. Login to Your Account
|
|
29
|
+
Authenticate your CLI with your TestiumHQ account:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
testiumhq login
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
You will be prompted to enter your **API Token**, which you can find in the TestiumHQ Dashboard.
|
|
36
|
+
|
|
37
|
+
### 3. Start the Local Agent
|
|
38
|
+
The agent acts as a bridge between the TestiumHQ Dashboard and your local machine. Start it to enable cloud-to-local test execution:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
testiumhq agent
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Once running, the Dashboard will detect your machine, allowing you to run and record tests locally.
|
|
45
|
+
|
|
46
|
+
## Usage Commands
|
|
47
|
+
|
|
48
|
+
| Command | Description |
|
|
49
|
+
|---------|-------------|
|
|
50
|
+
| `testiumhq init` | Initialize a new project with configuration |
|
|
51
|
+
| `testiumhq login` | Authenticate with your platform account |
|
|
52
|
+
| `testiumhq agent` | Start the local runner agent (Control Plane) |
|
|
53
|
+
| `testiumhq sync` | Synchronize test cases from the backend |
|
|
54
|
+
| `testiumhq run` | Execute local tests manually |
|
|
55
|
+
|
|
56
|
+
## CI/CD Integration
|
|
57
|
+
|
|
58
|
+
To run tests in CI environments (GitHub Actions, Jenkins, etc.), use the `run` command with your project ID:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
testiumhq run --projectId <your-project-id>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Ensure your `TESTIUMHQ_TOKEN` environment variable is set in your CI configuration.
|
|
65
|
+
|
|
66
|
+
## Support
|
|
67
|
+
|
|
68
|
+
For issues, questions, or feedback, please visit our [Documentation](https://testiumhq.com/docs) or contact our support team.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
© 2026 TestiumHQ. All rights reserved.
|